Can't connect to vm when connected to vpn - networking

I'm running VM on Ubuntu with Vagrant and VirtualBox. It has private network on 192.168.56.101. When I connect to VPN (SonicWALL NetExtender), I can't connect to VM anymore. On Windows the command ROUTE CHANGE 192.168.56.0 MASK 255.255.255.0 192.168.56.1 METRIC 300 solves the problem, but I tried to do something like this on Ubuntu (route add -net 192.168.56.0 gw 192.168.56.1 netmask 255.255.255.0 metric 300) and it's not working there.
Host routes without VPN:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 enp8s0
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp9s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp9s0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp8s0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp9s0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet0
Host routes with VPN:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.144 0.0.0.0 UG 0 0 0 ppp0
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 enp8s0
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp9s0
128.0.0.0 192.168.0.144 128.0.0.0 UG 0 0 0 ppp0
169.254.0.0 192.168.0.144 255.255.0.0 UG 0 0 0 ppp0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp9s0
192.0.2.1 192.168.0.144 255.255.255.255 UGH 0 0 0 ppp0
192.0.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 192.168.0.144 255.255.252.0 UG 0 0 0 ppp0
192.168.1.0 192.168.0.144 255.255.255.0 UG 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp8s0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp9s0
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 enp8s0
192.168.56.0 192.168.0.144 255.255.255.0 UG 0 0 0 ppp0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet0
193.173.28.142 192.168.1.1 255.255.255.255 UGH 0 0 0 enp8s0
VM routes:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

Hi not sure what VPN you are using, but this is a known issue and I don't think there any work around - however you can use " route -n add" command to connect to vboxnet only after disconnecting from VPN, please look at the Ticket #14293

Related

Openstack deployed successfuly with helm but Horizon doesn't show in services and not accessible via browser

I'm new to OpenStack and I did an AIO deployment using Openstack-helm, all my pods are running successfully, but horizon doesn't show in services
ubuntu#osh:~$ openstack service list
+----------------------------------+-----------+----------------+
| ID | Name | Type |
+----------------------------------+-----------+----------------+
| 305c4bf318a34159b404a302b4acfc6b | swift | object-store |
| 3ce69401243d4b139bee976962ea796f | cinder | volume |
| 4f5f0ef783b14266a5555658cc5d8ea5 | octavia | load-balancer |
| 5eb53e863e1f45fbad3c4956dcdabf6c | heat | orchestration |
| 689378403e07420bb4b984bda10c289a | nova | compute |
| 8a679679df5243d190375dd848994da6 | cinderv2 | volumev2 |
| 9b21f64133f34c72a1e7649016500da9 | neutron | network |
| b06260268fce424b80be89018ef489ab | placement | placement |
| d0d356473e744b0f9075aacf65248eee | cinderv3 | volumev3 |
| e6459da6b6a042fa8393d0c4ffa9c4a7 | heat-cfn | cloudformation |
| f48f5d824f8b42698c8bc73f5a7124b4 | keystone | identity |
| f8a3ac35ea1d47a9887cf8c4e9aa4039 | glance | image |
+----------------------------------+-----------+----------------+
horizon pods:
ubuntu#osh:~$ kk get pods -n openstack | grep horizon
horizon-6f74957769-vfzc7 1/1 Running 0 5d16h
horizon-db-init-2msqt 0/1 Completed 0 5d16h
horizon-db-sync-ffhlh 0/1 Completed 0 5d16h
horizon-test 0/1 Completed 0 5d1h
when I try to access the dashboard via my-ip-addr this shows in horizon logs:
ubuntu#osh:~$ kk logs horizon-6f74957769-vfzc7 -n openstack | tail -n 7
38.108.68.113 - - [09/Nov/2020:13:47:09 +0000] "GET / HTTP/1.1" 302 - "-" "kube-probe/1.16"
38.108.68.113 - - [09/Nov/2020:13:47:09 +0000] "GET /auth/login/?next=/ HTTP/1.1" 200 3100
38.108.68.113 - - [09/Nov/2020:13:47:09 +0000] "GET /auth/login/?next=/ HTTP/1.1" 200 3100 "http://192.168.244.170:80/" "kube-probe/1.16"
38.108.68.113 - - [09/Nov/2020:13:47:19 +0000] "GET / HTTP/1.1" 302 -
38.108.68.113 - - [09/Nov/2020:13:47:19 +0000] "GET / HTTP/1.1" 302 - "-" "kube-probe/1.16"
38.108.68.113 - - [09/Nov/2020:13:47:19 +0000] "GET /auth/login/?next=/ HTTP/1.1" 200 3096
38.108.68.113 - - [09/Nov/2020:13:47:19 +0000] "GET /auth/login/?next=/ HTTP/1.1" 200 3096 "http://192.168.244.170:80/" "kube-probe/1.16"
but in my browser it shows: This site can’t be reached "public-ip-addr" took too long to respond.
my pods:
ubuntu#osh:~$ kk get pods -n ceph
NAME READY STATUS RESTARTS AGE
ceph-bootstrap-x828n 0/1 Completed 0 5d23h
ceph-cephfs-client-key-generator-tmsqp 0/1 Completed 0 5d22h
ceph-cephfs-provisioner-6fc4ffb5b9-bbmd7 1/1 Running 0 5d22h
ceph-cephfs-provisioner-6fc4ffb5b9-ccbwb 1/1 Running 0 5d22h
ceph-checkdns-75694999c7-w76s4 1/1 Running 0 5d22h
ceph-mds-78fc5fbbfc-kskwb 1/1 Running 0 5d22h
ceph-mds-keyring-generator-lbrnn 0/1 Completed 0 5d23h
ceph-mgr-8547db99b9-tlfrl 1/1 Running 0 5d22h
ceph-mgr-keyring-generator-c5fsp 0/1 Completed 0 5d23h
ceph-mon-check-78b49c587d-zr49p 1/1 Running 0 5d23h
ceph-mon-keyring-generator-l6nrh 0/1 Completed 0 5d23h
ceph-mon-qghf4 1/1 Running 0 5d23h
ceph-osd-default-83945928-bgtth 2/2 Running 0 5d23h
ceph-osd-keyring-generator-wsbcw 0/1 Completed 0 5d23h
ceph-pool-checkpgs-1604929500-sbbvb 0/1 Completed 0 10m
ceph-rbd-pool-fxtcw 0/1 Completed 0 5d22h
ceph-rbd-provisioner-84c98d657c-2px5g 1/1 Running 0 5d22h
ceph-rbd-provisioner-84c98d657c-7sghm 1/1 Running 0 5d22h
ceph-storage-keys-generator-r9nsl 0/1 Completed 0 5d23h
ingress-65f7fdbb97-m9hwl 1/1 Running 0 5d23h
ingress-error-pages-7cf6656f66-bg5vn 1/1 Running 0 5d23h
ubuntu#osh:~$ kk get pods -n openstack
NAME READY STATUS RESTARTS AGE
ceph-ks-endpoints-tjbqd 0/3 Completed 0 5d22h
ceph-ks-service-dv9j7 0/1 Completed 0 5d22h
ceph-openstack-config-ceph-ns-key-generator-vdjxr 0/1 Completed 0 5d22h
ceph-rgw-5bf644d448-gz9cg 1/1 Running 0 5d22h
ceph-rgw-storage-init-v7gfg 0/1 Completed 0 5d22h
cinder-api-7b4bcbd5c4-n454f 1/1 Running 0 4d22h
cinder-backup-65d464f994-zdtts 1/1 Running 0 4d22h
cinder-backup-storage-init-98xlc 0/1 Completed 0 4d22h
cinder-bootstrap-9t8sp 0/1 Completed 0 4d22h
cinder-create-internal-tenant-lvh6m 0/1 Completed 0 4d22h
cinder-db-init-t9kbc 0/1 Completed 0 4d22h
cinder-db-sync-lkvcl 0/1 Completed 0 4d22h
cinder-ks-endpoints-lsx8k 0/9 Completed 0 4d22h
cinder-ks-service-jfcht 0/3 Completed 0 4d22h
cinder-ks-user-2rcvc 0/1 Completed 0 4d22h
cinder-rabbit-init-pbx7m 0/1 Completed 0 4d22h
cinder-scheduler-7b95f7f786-b7mnt 1/1 Running 0 4d22h
cinder-storage-init-rgzth 0/1 Completed 0 4d22h
cinder-volume-6bcbb5d8f4-mwhlj 1/1 Running 0 4d22h
cinder-volume-usage-audit-1604929200-gwjbd 0/1 Completed 0 14m
cinder-volume-usage-audit-1604929500-727fh 0/1 Completed 0 9m59s
cinder-volume-usage-audit-1604929800-g8tqc 0/1 Completed 0 4m56s
glance-api-6df5db9545-hmhbh 1/1 Running 0 5d21h
glance-bootstrap-fkv5d 0/1 Completed 0 5d21h
glance-db-init-qcnhs 0/1 Completed 0 5d21h
glance-db-sync-6kz4f 0/1 Completed 0 5d21h
glance-ks-endpoints-n96bw 0/3 Completed 0 5d21h
glance-ks-service-xmwpb 0/1 Completed 0 5d21h
glance-ks-user-jwjkd 0/1 Completed 0 5d21h
glance-metadefs-load-xb2dt 0/1 Completed 0 5d21h
glance-rabbit-init-9v88j 0/1 Completed 0 5d21h
glance-registry-87b755657-7pdmb 1/1 Running 0 5d21h
glance-storage-init-nzbzn 0/1 Completed 0 5d21h
heat-api-8f5b57f78-6qn7d 1/1 Running 0 5d22h
heat-bootstrap-sfnmx 0/1 Completed 0 5d22h
heat-cfn-84d67dc6b-jl7xb 1/1 Running 0 5d22h
heat-db-init-kdkqt 0/1 Completed 0 5d22h
heat-db-sync-2dd8x 0/1 Completed 0 5d22h
heat-domain-ks-user-5c9k8 0/1 Completed 0 5d22h
heat-engine-85986956f8-5vm6x 1/1 Running 0 5d22h
heat-engine-cleaner-1604929200-9rwmg 0/1 Completed 0 14m
heat-engine-cleaner-1604929500-lldq5 0/1 Completed 0 9m59s
heat-engine-cleaner-1604929800-9vp2f 0/1 Completed 0 4m56s
heat-ks-endpoints-knjlm 0/6 Completed 0 5d22h
heat-ks-service-5wkm5 0/2 Completed 0 5d22h
heat-ks-user-xc8wh 0/1 Completed 0 5d22h
heat-purge-deleted-1604708400-bnp4p 0/1 Completed 0 2d13h
heat-purge-deleted-1604794800-x9mnl 0/1 Completed 0 37h
heat-purge-deleted-1604881200-zgrc7 0/1 Completed 0 13h
heat-rabbit-init-wmpjx 0/1 Completed 0 5d22h
heat-trustee-ks-user-mrqhd 0/1 Completed 0 5d22h
heat-trusts-t5nb2 0/1 Completed 0 5d22h
horizon-6f74957769-vfzc7 1/1 Running 0 5d17h
horizon-db-init-2msqt 0/1 Completed 0 5d17h
horizon-db-sync-ffhlh 0/1 Completed 0 5d17h
horizon-test 0/1 Completed 0 5d1h
ingress-788d58fc4c-pmv8t 1/1 Running 0 5d23h
ingress-error-pages-867d8c6c9b-6xsbt 1/1 Running 0 5d23h
keystone-api-7f4c8bd8f8-pkls5 1/1 Running 0 5d22h
keystone-bootstrap-gb5ws 0/1 Completed 0 5d22h
keystone-credential-setup-4rd6v 0/1 Completed 0 5d22h
keystone-db-init-mh5sg 0/1 Completed 0 5d22h
keystone-db-sync-sztr4 0/1 Completed 0 5d22h
keystone-domain-manage-v9brv 0/1 Completed 0 5d22h
keystone-fernet-rotate-1604836800-mdwzl 0/1 Completed 0 25h
keystone-fernet-rotate-1604880000-l7c5m 0/1 Completed 0 13h
keystone-fernet-rotate-1604923200-nzwwr 0/1 Completed 0 114m
keystone-fernet-setup-dcs5t 0/1 Completed 0 5d22h
keystone-rabbit-init-nhkm6 0/1 Completed 0 5d22h
libvirt-libvirt-default-dk7nz 1/1 Running 0 5d20h
mariadb-ingress-5c58c94446-cdvls 1/1 Running 0 5d22h
mariadb-ingress-5c58c94446-xcrdp 1/1 Running 0 5d22h
mariadb-ingress-error-pages-69d79594c7-2lvp2 1/1 Running 0 5d22h
mariadb-server-0 1/1 Running 0 5d22h
memcached-memcached-7b49f48865-rrtbg 1/1 Running 0 5d22h
neutron-db-init-7t6d2 0/1 Completed 0 5d19h
neutron-db-sync-fxb4w 0/1 Completed 0 5d19h
neutron-dhcp-agent-default-g5g9t 1/1 Running 0 5d17h
neutron-ks-endpoints-9jpds 0/3 Completed 0 5d19h
neutron-ks-service-kk6j8 0/1 Completed 0 5d19h
neutron-ks-user-tzzj4 0/1 Completed 0 5d19h
neutron-l3-agent-default-6d8qw 1/1 Running 0 5d17h
neutron-metadata-agent-default-vlnrx 1/1 Running 0 5d17h
neutron-netns-cleanup-cron-default-5s2mr 1/1 Running 0 5d17h
neutron-ovs-agent-default-x74hg 1/1 Running 0 5d17h
neutron-rabbit-init-v8qp2 0/1 Completed 0 5d19h
neutron-server-56ccf9f58b-9pmhd 1/1 Running 0 5d17h
nova-api-metadata-59db478dff-q2n6w 1/1 Running 0 5d17h
nova-api-osapi-6f6f768987-t4bmr 1/1 Running 0 5d17h
nova-bootstrap-r84bk 0/1 Completed 0 5d17h
nova-cell-setup-ldnm6 0/1 Completed 0 5d17h
nova-compute-default-qzczr 1/1 Running 0 5d17h
nova-conductor-b95c99f74-d4tct 1/1 Running 0 5d17h
nova-consoleauth-566d879bf7-szgts 1/1 Running 0 5d17h
nova-db-init-wx672 0/3 Completed 0 5d17h
nova-db-sync-bl46q 0/1 Completed 0 5d17h
nova-ks-endpoints-z5j9d 0/3 Completed 0 5d17h
nova-ks-service-f4l8n 0/1 Completed 0 5d17h
nova-ks-user-4qfhf 0/1 Completed 0 5d17h
nova-novncproxy-7c8c4b6c6b-q5kpl 1/1 Running 0 5d17h
nova-rabbit-init-9dg8g 0/1 Completed 0 5d17h
nova-scheduler-6dd66d575d-h77km 1/1 Running 0 5d17h
octavia-api-86d866579b-k42cq 1/1 Running 0 4d16h
octavia-bootstrap-7gds9 0/1 Completed 0 4d16h
octavia-db-init-59vl5 0/1 Completed 0 4d16h
octavia-db-sync-xs5dh 0/1 Completed 0 4d16h
octavia-health-manager-default-w5n55 1/1 Running 0 4d16h
octavia-housekeeping-9b49c7dd9-fpdx8 1/1 Running 0 4d16h
octavia-ks-endpoints-vqjzm 0/3 Completed 0 4d16h
octavia-ks-service-bspf4 0/1 Completed 0 4d16h
octavia-ks-user-d26zf 0/1 Completed 0 4d16h
octavia-rabbit-init-wjpvv 0/1 Completed 0 4d16h
octavia-worker-7fc6dd5bb9-hx2gf 1/1 Running 0 4d16h
openvswitch-db-j2l98 1/1 Running 0 5d20h
openvswitch-vswitchd-gm2vn 1/1 Running 0 5d20h
placement-api-5f84f5d545-q6dkl 1/1 Running 0 5d17h
placement-db-init-b7tj2 0/1 Completed 0 5d19h
placement-db-sync-4xxlh 0/1 Completed 0 5d19h
placement-ks-endpoints-8xbt2 0/3 Completed 0 5d19h
placement-ks-service-rvwfc 0/1 Completed 0 5d19h
placement-ks-user-n9fvw 0/1 Completed 0 5d19h
rabbitmq-cluster-wait-txwvh 0/1 Completed 0 5d22h
rabbitmq-rabbitmq-0 1/1 Running 0 5d22h
rabbitmq-rabbitmq-1 1/1 Running 0 5d22h
swift-ks-user-rh8tq 0/1 Completed 0 5d22h
any hints, where the problem comes from, or how to fix it would be helpful.
Thank you!

Influxdb does not close TCP connections

I connecting to my influxdb (1.1.1.1:8086) from my pc (2.2.2.2) to perform some queries. I find out, my server keeping the connections opened:
netstat -tpn | grep 8086
tcp6 0 0 1.1.1.1:8086 2.2.2.2:50839 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:51890 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:48478 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:56878 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:52680 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:52580 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:57184 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:61375 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:51220 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:34310 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:52282 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:49720 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:52946 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:52501 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:57278 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:36788 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:50687 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:64940 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:64949 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:48236 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:46754 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:50046 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:60312 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:55634 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:65141 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:51456 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:59572 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:49993 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:54233 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:50674 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:64182 ESTABLISHED 48554/influxd
tcp6 0 0 1.1.1.1:8086 2.2.2.2:58076 ESTABLISHED 48554/influxd
When I tried it on my localhost, the connections decreased when I stop sending queries or data to save almost immediately. There is also no query performed by influxdb:
InfluxDB shell version: 1.6.0
> SHOW QUERIES
qid query database duration status
--- ----- -------- -------- ------
670 SHOW QUERIES 537µs running
How can I close this session in linux? How shoul I configure influxdb to close this sessions automatically(on local host I have default configuration).
Versions:
Python lib influxdb (5.1.0)
OS Ubuntu 16.04.5 LTS
PROGRAM:
from influxdb import InfluxDBClient
import random
host = '1.1.1.1'
port = 8086
user = 'user'
password = 'password'
dbname = 'database'
client = InfluxDBClient(host, port, user, password, dbname)
json_body = [{"measurement": "TEST",
"tags": {"Location": "local0"},
"fields": {"Value": random.random()}}]
print(json_body)
client.write_points(json_body)

jfrog cli error "wrong number of arguments" when running jfrog rt config

I'm using the following command in a CI pipeline that builds a Docker container:
RUN curl -fL https://getcli.jfrog.io | sh \
&& mv jfrog /usr/local/bin/jfrog \
&& jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory
which is failing with error: [Error] Wrong number of arguments.:
Step 8/11 : RUN curl -fL https://getcli.jfrog.io | sh && mv jfrog /usr/local/bin/jfrog && jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory
---> Running in 975540bce561
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 178 100 178 0 0 329 0 --:--:-- --:--:-- --:--:-- 330
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 985 100 985 0 0 782 0 0:00:01 0:00:01 --:--:-- 3634
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
83 19.2M 83 16.0M 0 0 10.6M 0 0:00:01 0:00:01 --:--:-- 10.6M
100 19.2M 100 19.2M 0 0 11.4M 0 0:00:01 0:00:01 --:--:-- 19.9M
[Error] Wrong number of arguments. You can read the documentation at https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
I've run the same commands on my local machine and gotten the same behaviour.
This is a command that we run in a CI pipeline and the last time that that CI pipeline ran was on 2018-04-19 (about 3 weeks ago) and I can see that on that occasion it succeeded:
Step 8/11 : RUN curl -fL https://getcli.jfrog.io | sh && mv jfrog /usr/local/bin/jfrog && jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory
---> Using cache
---> 1b0de0d85655
Step 9/11 : etc...
I can only infer that something in the jfrog CLI has changed in the interim. According to the documentation the command we're issuing:
jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory
is ok.
Hoping someone here can tell me what is wrong with this command,
Turns out this is a breaking change in the latest version of the CLI. Details here: https://github.com/JFrogDev/jfrog-cli-go/issues/165

amd radeon r9 series smp_affinity

Using taskset -c 1 with opencl program,it runs at the same speed that without use of it in four core machine. But the load with taskset is 13% without it 50%.
I am using AMD drivers 13.12 in fedora 20, after too much problems (amd r9 opencl not supported by fedora and AMD drivers does not compile, requires third part patch).
The system has 3 GPUs and I trying to assign interrupts of one GPU to one CPU core.
The problem is that I can not echo anything to smp_affinity in /proc/irq/60/
CPU0 CPU1 CPU2 CPU3
0: 125 0 0 0 IO-APIC-edge timer
1: 3 3 2 2 IO-APIC-edge i8042
7: 1 0 0 0 IO-APIC-edge
8: 0 0 1 0 IO-APIC-edge rtc0
9: 0 0 0 0 IO-APIC-fasteoi acpi
14: 20553 19951 18934 23545 IO-APIC-edge pata_atiixp
15: 0 0 0 0 IO-APIC-edge pata_atiixp
16: 209 210 333 254 IO-APIC-fasteoi snd_hda_intel
17: 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1, ehci_hcd:usb2
18: 1 1 1 0 IO-APIC-fasteoi ohci_hcd:usb3, ohci_hcd:usb4, ohci_hcd:usb5
40: 0 0 0 0 PCI-MSI-edge ahci
41: 4 4 3 5 PCI-MSI-edge xhci_hcd
42: 0 0 0 0 PCI-MSI-edge xhci_hcd
43: 0 0 0 0 PCI-MSI-edge xhci_hcd
44: 0 0 0 0 PCI-MSI-edge xhci_hcd
45: 0 0 0 0 PCI-MSI-edge xhci_hcd
46: 0 0 0 0 PCI-MSI-edge xhci_hcd
47: 0 0 0 0 PCI-MSI-edge xhci_hcd
48: 0 0 0 0 PCI-MSI-edge xhci_hcd
49: 0 0 0 0 PCI-MSI-edge xhci_hcd
50: 0 0 0 0 PCI-MSI-edge xhci_hcd
51: 0 0 0 0 PCI-MSI-edge xhci_hcd
52: 0 0 0 0 PCI-MSI-edge xhci_hcd
53: 0 0 0 0 PCI-MSI-edge xhci_hcd
54: 0 0 0 0 PCI-MSI-edge xhci_hcd
55: 0 0 0 0 PCI-MSI-edge xhci_hcd
56: 260453 27 39686 10222 PCI-MSI-edge p19p1
57: 30 29 28 31 PCI-MSI-edge snd_hda_intel
58: 30 29 29 30 PCI-MSI-edge snd_hda_intel
59: 30 30 29 29 PCI-MSI-edge snd_hda_intel
60: 376820 387077 422262 414046 PCI-MSI-edge fglrx[0]#PCI:1:0:0
61: 233781 260237 282034 273928 PCI-MSI-edge fglrx[1]#PCI:2:0:0
62: 325068 337322 385699 381124 PCI-MSI-edge fglrx[2]#PCI:3:0:0
NMI: 109 466 134 132 Non-maskable interrupts
LOC: 1455844 4537211 1861268 1830786 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 109 466 134 132 Performance monitoring interrupts
IWI: 48127 24519 17582 13174 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 33436070 33287609 27497110 27413290 Rescheduling interrupts
CAL: 1727 1523 1401 1314 Function call interrupts
TLB: 416983 448396 436569 455603 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 18 18 18 18 Machine check polls
Linux * 3.12.6-300.fc20.x86_64 #1 SMP Mon Dec 23 16:44:31 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon R9 200 Series
OpenGL version string: 4.3.12618 Compatibility Profile Context 13.251
display: :0.0 screen: 1
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon R9 200 Series
OpenGL version string: 4.3.12618 Compatibility Profile Context 13.251
display: :0.0 screen: 2
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon R9 200 Series
OpenGL version string: 4.3.12618 Compatibility Profile Context 13.251
It's possible to assign IRQ 60 to core 0, 61 to 1 and 62 to 2 ?
Or reduce CPU load.

Calculate throughput in NS2 using AWK

My senario in NS 2.29 has 5 nodes which each node has 2 interfaces to expect node 0 and node 4 and node 0 wants to send packet to node 4. The protocol I've used is AODV and type of nodes is wireless
I want to calculate
receive packet / send packet
and also throughput in different simulation time and I want to do all with AWK language.
I dont know how to share output file to undrestand what I said.
output file :
s -t 0.100000000 -Hs 0 -Hd -2 -Ni 0 -Nx 0.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4.0 -It cbr -Il 1000 -If 1 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0
r -t 0.100000000 -Hs 0 -Hd -2 -Ni 0 -Nx 0.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4.0 -It cbr -Il 1000 -If 1 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0
s 0.100000000 _0_ RTR --- 0 AODV 48 [0 0 0 0] ------- [0:255 -1:255 30 0] [0x2 1 1 [4 0] [0 4]] (REQUEST)
s -t 0.100295000 -Hs 0 -Hd -2 -Ni 0 -Nx 0.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 0 -Mt 800 -Is 0.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
r -t 0.101095133 -Hs 1 -Hd -2 -Ni 1 -Nx 40.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 0 -Mt 800 -Is 0.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
r -t 0.101120133 -Hs 1 -Hd -2 -Ni 1 -Nx 40.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 0 -Mt 800 -Is 0.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
s 0.102001360 _1_ RTR --- 0 AODV 48 [0 ffffffff 0 800] ------- [1:255 -1:255 29 0] [0x2 2 1 [4 0] [0 4]] (REQUEST)
s -t 0.102476360 -Hs 1 -Hd -2 -Ni 1 -Nx 40.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
r -t 0.103276493 -Hs 0 -Hd -2 -Ni 0 -Nx 0.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
r -t 0.103301493 -Hs 0 -Hd -2 -Ni 0 -Nx 0.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
s 0.105531867 _1_ RTR --- 0 AODV 48 [0 ffffffff 0 800] ------- [1:255 -1:255 29 0] [0x2 2 1 [4 0] [0 4]] (REQUEST)
s -t 0.105786867 -Hs 1 -Hd -2 -Ni 1 -Nx 40.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 2 -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
r -t 0.106587000 -Hs 2 -Hd -2 -Ni 2 -Nx 80.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 2 -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
r -t 0.106612000 -Hs 2 -Hd -2 -Ni 2 -Nx 80.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 2 -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
s 0.109702791 _2_ RTR --- 0 AODV 48 [0 ffffffff 2 800] ------- [2:255 -1:255 28 0] [0x2 3 1 [4 0] [0 4]] (REQUEST)
s -t 0.110077791 -Hs 2 -Hd -2 -Ni 2 -Nx 80.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 4 -Mt 800 -Is 2.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 28 -P aodv -Pt 0x2 -Ph 3 -Pb 1 -Pd 4 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST
....
to be continue
Can anybody explain how can I do this?
Any answer will be very helpfull.
Thanks
Let's say you have the following two data lines which consist of a timestamp and a number of bytes sent during the time interval ending with that timestamp:
s 1341227109 10010
r 1341227111 19115
s 1341227118 12345
r 1341227122 16773
This snippet would calculate the throughput during the time interval between the two events:
awk '! sprev && $1 == "s" {sprev = $2; next} $1 == "s" {sinterval = $2 - sprev; sthroughput = $2 / sinterval; print sthroughput, "sent bytes/second"}' inputfile
add similar blocks for received data. You can use arrays to track node to node communication separately if needed.
Issues to be addressed:
Do you want to output throughput for each interval? Probably not. Is it good enough to use the first and last event only? Do you want to do some sort of moving calculation taking some number of events or larger segements of time?
Are there different types of events that need to be accounted separately?
Is there data to be ignored or used in setup?
It looks to me that the more natural choice for processing NS2 data might be TCL since it appears to be used within the package and there may be APIs that you can take advantage of. However, AWK is perfectly suited for processing tabular data.

Resources