2026-10-20 13:28:35,334 - INFO - Domain Default found not creating
2026-10-20 13:28:35,517 - INFO - Project ctest-TestBasicPolicy-14913026 not found, creating it
2026-10-20 13:28:36,005 - INFO - Created Project:ctest-TestBasicPolicy-14913026, ID : 523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:28:37,742 - INFO - ================================================================================
2026-10-20 13:28:37,742 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-20 13:28:37,743 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2026-10-20 13:28:38,012 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.25': '0'}} with
2026-10-20 13:28:38,012 - INFO - Initial checks done. Running the testcase now
2026-10-20 13:28:38,012 - INFO -
2026-10-20 13:28:38,634 - DEBUG - Response for create_network : {'network': {'id': 'ee486ca0-16eb-4211-8dcd-5a5cbb744df5', 'name': 'ctest-vn-25153584', 'tenant_id': '523ac56d0de74945aad1fc792e6c8743', 'project_id': '523ac56d0de74945aad1fc792e6c8743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-vn-25153584'], 'port_security_enabled': True, 'description': ''}}
2026-10-20 13:28:38,848 - DEBUG - Response for create_subnet : {'subnet': {'id': '72f0c9d0-502b-401e-ae72-94d8825eeb31', 'name': '', 'tenant_id': '523ac56d0de74945aad1fc792e6c8743', 'network_id': 'ee486ca0-16eb-4211-8dcd-5a5cbb744df5', 'ip_version': 4, 'cidr': '161.123.78.128/26', 'allocation_pools': [{'start': '161.123.78.130', 'end': '161.123.78.190'}], 'gateway_ip': '161.123.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.123.78.130', 'tags': [], 'project_id': '523ac56d0de74945aad1fc792e6c8743'}}
2026-10-20 13:28:38,868 - INFO - Created VN ctest-vn-25153584
2026-10-20 13:28:38,919 - DEBUG - VN ctest-vn-25153584 UUID is ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:39,234 - DEBUG - Response for create_network : {'network': {'id': 'bdd79af1-5aa3-4f3e-a6de-9751cea100ff', 'name': 'ctest-vn-26009497', 'tenant_id': '523ac56d0de74945aad1fc792e6c8743', 'project_id': '523ac56d0de74945aad1fc792e6c8743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-vn-26009497'], 'port_security_enabled': True, 'description': ''}}
2026-10-20 13:28:39,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '9378092f-3812-4145-83a8-990b1b72103d', 'name': '', 'tenant_id': '523ac56d0de74945aad1fc792e6c8743', 'network_id': 'bdd79af1-5aa3-4f3e-a6de-9751cea100ff', 'ip_version': 4, 'cidr': '150.53.165.0/26', 'allocation_pools': [{'start': '150.53.165.2', 'end': '150.53.165.62'}], 'gateway_ip': '150.53.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.53.165.2', 'tags': [], 'project_id': '523ac56d0de74945aad1fc792e6c8743'}}
2026-10-20 13:28:39,413 - INFO - Created VN ctest-vn-26009497
2026-10-20 13:28:39,467 - DEBUG - VN ctest-vn-26009497 UUID is bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:39,590 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-25153584, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-26009497, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2026-10-20 13:28:39,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee486ca0-16eb-4211-8dcd-5a5cbb744df5', 'name': 'ctest-vn-25153584', 'tenant_id': '523ac56d0de74945aad1fc792e6c8743', 'project_id': '523ac56d0de74945aad1fc792e6c8743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['72f0c9d0-502b-401e-ae72-94d8825eeb31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-vn-25153584'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-policy-allow-all-63162381']], 'subnet_ipam': [{'subnet_cidr': '161.123.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-20 13:28:40,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdd79af1-5aa3-4f3e-a6de-9751cea100ff', 'name': 'ctest-vn-26009497', 'tenant_id': '523ac56d0de74945aad1fc792e6c8743', 'project_id': '523ac56d0de74945aad1fc792e6c8743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9378092f-3812-4145-83a8-990b1b72103d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-vn-26009497'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-policy-allow-all-63162381']], 'subnet_ipam': [{'subnet_cidr': '150.53.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-20 13:28:40,307 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:28:40,677 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:28:40,714 - DEBUG - Requesting: http://10.0.0.186:8082/domain/cd75ed69-f739-4925-bf8c-8d97c466fbfe
2026-10-20 13:28:40,730 - DEBUG - Requesting: http://10.0.0.186:8082/project/523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:28:40,810 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:40,824 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:40,836 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/9783091f-ad35-4c80-aac7-d9309e72e17e
2026-10-20 13:28:40,845 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/9783091f-ad35-4c80-aac7-d9309e72e17e
2026-10-20 13:28:40,852 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/6d8faf68-d5b1-4643-99c9-7ed01484a48f
2026-10-20 13:28:40,860 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-20 13:28:40,860 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:40,871 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/9783091f-ad35-4c80-aac7-d9309e72e17e
2026-10-20 13:28:40,887 - INFO - Verified VN network id 12 for VN ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:40,887 - INFO - Verifications in API Server for VN ctest-vn-25153584 passed
2026-10-20 13:28:40,887 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:40,898 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/9783091f-ad35-4c80-aac7-d9309e72e17e
2026-10-20 13:28:40,905 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/9783091f-ad35-4c80-aac7-d9309e72e17e
2026-10-20 13:28:40,913 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/6d8faf68-d5b1-4643-99c9-7ed01484a48f
2026-10-20 13:28:40,925 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-25153584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14913026', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17170093014185099793', 'uuid-lslong': '10217922483901976053'}, 'enable': 'true', 'created': '2026-10-20T13:28:38', 'last-modified': '2026-10-20T13:28:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.049208'}
2026-10-20 13:28:40,933 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-20 13:28:40,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25153584 passed
2026-10-20 13:28:40,933 - DEBUG - ====Verifying policy data for ctest-vn-25153584 in API_Server ======
2026-10-20 13:28:40,933 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:28:40,939 - DEBUG - Requesting: http://10.0.0.186:8082/domain/cd75ed69-f739-4925-bf8c-8d97c466fbfe
2026-10-20 13:28:40,950 - DEBUG - Requesting: http://10.0.0.186:8082/project/523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:28:41,025 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/ee486ca0-16eb-4211-8dcd-5a5cbb744df5
2026-10-20 13:28:41,035 - DEBUG - ==>Verifying data for policy with id: b6606e34-486e-442e-aaf7-de742b125d9f, fqn: ['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-policy-allow-all-63162381']
2026-10-20 13:28:41,035 - INFO - VN ctest-vn-25153584 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-20 13:28:41,035 - DEBUG - Verifying the vn in opserver
2026-10-20 13:28:41,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-25153584 virtual network link through opserver 10.0.0.186
2026-10-20 13:28:41,035 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks
2026-10-20 13:28:41,403 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks
2026-10-20 13:28:41,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-25153584', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-25153584?flat'}
2026-10-20 13:28:41,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-25153584 is found in opserver
2026-10-20 13:28:41,477 - DEBUG - Do not have enough data to verify VN in agent
2026-10-20 13:28:41,482 - DEBUG - VRF ids for VN ctest-vn-25153584: {}
2026-10-20 13:28:41,483 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:28:41,489 - DEBUG - Requesting: http://10.0.0.186:8082/domain/cd75ed69-f739-4925-bf8c-8d97c466fbfe
2026-10-20 13:28:41,500 - DEBUG - Requesting: http://10.0.0.186:8082/project/523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:28:41,577 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:41,588 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:41,597 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/0b669675-4a11-4cbb-8734-8137316754b0
2026-10-20 13:28:41,604 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/0b669675-4a11-4cbb-8734-8137316754b0
2026-10-20 13:28:41,611 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/d1660f00-d899-47a6-b7ab-9a3c640396eb
2026-10-20 13:28:41,617 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-20 13:28:41,617 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:41,626 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/0b669675-4a11-4cbb-8734-8137316754b0
2026-10-20 13:28:41,642 - INFO - Verified VN network id 13 for VN bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:41,642 - INFO - Verifications in API Server for VN ctest-vn-26009497 passed
2026-10-20 13:28:41,642 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:41,652 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/0b669675-4a11-4cbb-8734-8137316754b0
2026-10-20 13:28:41,660 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/0b669675-4a11-4cbb-8734-8137316754b0
2026-10-20 13:28:41,667 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/d1660f00-d899-47a6-b7ab-9a3c640396eb
2026-10-20 13:28:41,680 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-26009497', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14913026', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13679572754559618878', 'uuid-lslong': '12024214432740606207'}, 'enable': 'true', 'created': '2026-10-20T13:28:39', 'last-modified': '2026-10-20T13:28:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.565649'}
2026-10-20 13:28:41,689 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-20 13:28:41,690 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26009497 passed
2026-10-20 13:28:41,690 - DEBUG - ====Verifying policy data for ctest-vn-26009497 in API_Server ======
2026-10-20 13:28:41,690 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:28:41,697 - DEBUG - Requesting: http://10.0.0.186:8082/domain/cd75ed69-f739-4925-bf8c-8d97c466fbfe
2026-10-20 13:28:41,709 - DEBUG - Requesting: http://10.0.0.186:8082/project/523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:28:41,786 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/bdd79af1-5aa3-4f3e-a6de-9751cea100ff
2026-10-20 13:28:41,796 - DEBUG - ==>Verifying data for policy with id: b6606e34-486e-442e-aaf7-de742b125d9f, fqn: ['default-domain', 'ctest-TestBasicPolicy-14913026', 'ctest-policy-allow-all-63162381']
2026-10-20 13:28:41,796 - INFO - VN ctest-vn-26009497 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-20 13:28:41,796 - DEBUG - Verifying the vn in opserver
2026-10-20 13:28:41,796 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-26009497 virtual network link through opserver 10.0.0.186
2026-10-20 13:28:41,796 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks
2026-10-20 13:28:41,808 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-26009497', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-26009497?flat'}
2026-10-20 13:28:41,808 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14913026:ctest-vn-26009497 is found in opserver
2026-10-20 13:28:41,818 - DEBUG - Do not have enough data to verify VN in agent
2026-10-20 13:28:41,823 - DEBUG - VRF ids for VN ctest-vn-26009497: {}
2026-10-20 13:28:41,883 - DEBUG - Services list from nova: [, , ]
2026-10-20 13:28:42,270 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6373-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6373-1)
2026-10-20 13:28:42,703 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6373-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6373-1)
2026-10-20 13:28:42,703 - INFO - Waiting for VM ctest-TestBasicPolicy-14913026-86580107 to be up..
2026-10-20 13:28:42,743 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:28:47,832 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:28:52,922 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:28:58,007 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:29:03,098 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:29:08,192 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:29:13,288 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:29:18,387 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-20 13:29:23,483 - DEBUG - VM is in ACTIVE state now
2026-10-20 13:29:23,483 - INFO - VM name : ctest-TestBasicPolicy-14913026-86580107
2026-10-20 13:29:23,577 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 ID is f53291b0-6de7-48de-a2f0-0992bf1f3a3d
2026-10-20 13:29:23,597 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 launched on Node cn-jenkins-deploy-platform-ansible-os-6373-1
2026-10-20 13:29:23,688 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine/f53291b0-6de7-48de-a2f0-0992bf1f3a3d
2026-10-20 13:29:23,697 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine-interface/7ae483af-169a-42ba-b454-bc6d691f79a9
2026-10-20 13:29:26,967 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.70 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1025ms\r\nrtt min/avg/max/mdev = 3.697/3.697/3.697/0.000 ms')
2026-10-20 13:29:26,967 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14913026-86580107 passed
2026-10-20 13:29:27,127 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:27,127 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:27,193 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:27,284 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:29:32,285 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:32,285 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:32,344 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:32,428 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:29:37,429 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:37,429 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:37,497 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:37,583 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:29:42,584 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:42,585 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:42,653 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:42,735 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:29:47,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:47,736 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:47,801 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:47,970 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:29:52,971 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:52,972 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:53,037 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:53,124 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:29:58,124 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:29:58,125 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:29:58,182 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:29:58,268 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:30:03,269 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:30:03,270 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:30:03,337 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:30:03,419 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:30:08,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:30:08,420 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-86580107, IP 161.123.78.131, Port 22
2026-10-20 13:30:08,579 - DEBUG - VM ctest-TestBasicPolicy-14913026-86580107 is ready for SSH connections
2026-10-20 13:30:08,579 - INFO - Waiting for VM ctest-TestBasicPolicy-14913026-36699708 to be up..
2026-10-20 13:30:08,662 - DEBUG - VM is in ACTIVE state now
2026-10-20 13:30:08,662 - INFO - VM name : ctest-TestBasicPolicy-14913026-36699708
2026-10-20 13:30:08,744 - DEBUG - VM ctest-TestBasicPolicy-14913026-36699708 ID is 9b45f546-fc5b-42a9-afe7-953da18c78cd
2026-10-20 13:30:08,744 - DEBUG - VM ctest-TestBasicPolicy-14913026-36699708 launched on Node cn-jenkins-deploy-platform-ansible-os-6373-1
2026-10-20 13:30:08,838 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine/9b45f546-fc5b-42a9-afe7-953da18c78cd
2026-10-20 13:30:08,848 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine-interface/e7506724-ff21-4bd8-b172-9cd470f9b2c9
2026-10-20 13:30:10,096 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.43 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.480 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.480/1.456/2.432/0.976 ms')
2026-10-20 13:30:10,096 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-14913026-36699708 passed
2026-10-20 13:30:10,255 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:30:10,256 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-36699708, IP 150.53.165.3, Port 22
2026-10-20 13:30:10,331 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2026-10-20 13:30:10,433 - DEBUG - VM ctest-TestBasicPolicy-14913026-36699708 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-20 13:30:15,434 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:30:15,434 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14913026-36699708, IP 150.53.165.3, Port 22
2026-10-20 13:30:15,607 - DEBUG - VM ctest-TestBasicPolicy-14913026-36699708 is ready for SSH connections
2026-10-20 13:30:15,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:30:15,607 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.53.165.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.186, gateway password: c0ntrail123
2026-10-20 13:30:15,607 - DEBUG - ping -s 56 -c 3 -W 1 150.53.165.3
2026-10-20 13:30:19,737 - DEBUG - PING 150.53.165.3 (150.53.165.3): 56 data bytes
64 bytes from 150.53.165.3: seq=0 ttl=63 time=1.941 ms
64 bytes from 150.53.165.3: seq=1 ttl=63 time=1.002 ms
64 bytes from 150.53.165.3: seq=2 ttl=63 time=1.370 ms
--- 150.53.165.3 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.002/1.437/1.941 ms
2026-10-20 13:30:19,737 - INFO - Ping to IP 150.53.165.3 from VM ctest-TestBasicPolicy-14913026-86580107 passed
2026-10-20 13:30:20,035 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b6606e34-486e-442e-aaf7-de742b125d9f", "href": "http://10.0.0.186:8082/network-policy/b6606e34-486e-442e-aaf7-de742b125d9f"}}
2026-10-20 13:30:20,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-20 13:30:20,035 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.53.165.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.186, gateway password: c0ntrail123
2026-10-20 13:30:20,035 - DEBUG - ping -s 56 -c 3 -W 1 150.53.165.3
2026-10-20 13:30:23,197 - DEBUG - PING 150.53.165.3 (150.53.165.3): 56 data bytes
64 bytes from 150.53.165.3: seq=0 ttl=63 time=2.805 ms
--- 150.53.165.3 ping statistics ---
3 packets transmitted, 1 packets received, 66% packet loss
round-trip min/avg/max = 2.805/2.805/2.805 ms
2026-10-20 13:30:23,197 - WARNING - Ping to IP 150.53.165.3 from VM ctest-TestBasicPolicy-14913026-86580107 failed
2026-10-20 13:30:23,197 - INFO - Deleting VM ctest-TestBasicPolicy-14913026-36699708
2026-10-20 13:30:23,287 - INFO - Deleting VM ctest-TestBasicPolicy-14913026-86580107
2026-10-20 13:30:23,684 - INFO - Deleted policy ctest-policy-allow-all-63162381
2026-10-20 13:30:23,684 - INFO - Deleting VN ctest-vn-26009497
2026-10-20 13:30:23,726 - DEBUG - VN bdd79af1-5aa3-4f3e-a6de-9751cea100ff still in use: Unable to complete operation on network bdd79af1-5aa3-4f3e-a6de-9751cea100ff. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-a5a861b2-c36f-4cde-941d-5663c3f40e1d']
2026-10-20 13:30:23,726 - WARNING - Deleting VN ctest-vn-26009497 failed..Will retry
2026-10-20 13:30:25,775 - DEBUG - VN bdd79af1-5aa3-4f3e-a6de-9751cea100ff still in use: Unable to complete operation on network bdd79af1-5aa3-4f3e-a6de-9751cea100ff. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-65c3f3fb-962e-44c0-b1c4-845006f9a767']
2026-10-20 13:30:25,775 - WARNING - Deleting VN ctest-vn-26009497 failed..Will retry
2026-10-20 13:30:27,886 - DEBUG - Response for deleting network ()
2026-10-20 13:30:27,887 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/0b669675-4a11-4cbb-8734-8137316754b0
2026-10-20 13:30:27,895 - DEBUG - Response Code: 404
2026-10-20 13:30:27,895 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:30:27,900 - DEBUG - Requesting: http://10.0.0.186:8082/domain/cd75ed69-f739-4925-bf8c-8d97c466fbfe
2026-10-20 13:30:27,965 - DEBUG - Requesting: http://10.0.0.186:8082/project/523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:30:28,043 - INFO - Validated that VN ctest-vn-26009497 is not found in API Server
2026-10-20 13:30:28,058 - DEBUG - VN ctest-vn-26009497 is not present in Agent 10.0.0.186
2026-10-20 13:30:28,058 - INFO - Validated that VN ctest-vn-26009497 is not in any agent
2026-10-20 13:30:28,074 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26009497 info
2026-10-20 13:30:28,074 - INFO - Deleting VN ctest-vn-25153584
2026-10-20 13:30:28,216 - DEBUG - Response for deleting network ()
2026-10-20 13:30:28,216 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/9783091f-ad35-4c80-aac7-d9309e72e17e
2026-10-20 13:30:28,224 - DEBUG - Response Code: 404
2026-10-20 13:30:28,224 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-20 13:30:28,231 - DEBUG - Requesting: http://10.0.0.186:8082/domain/cd75ed69-f739-4925-bf8c-8d97c466fbfe
2026-10-20 13:30:28,285 - DEBUG - Requesting: http://10.0.0.186:8082/project/523ac56d-0de7-4945-aad1-fc792e6c8743
2026-10-20 13:30:28,364 - INFO - Validated that VN ctest-vn-25153584 is not found in API Server
2026-10-20 13:30:28,379 - DEBUG - VN ctest-vn-25153584 is not present in Agent 10.0.0.186
2026-10-20 13:30:28,379 - INFO - Validated that VN ctest-vn-25153584 is not in any agent
2026-10-20 13:30:28,400 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25153584 info
2026-10-20 13:30:28,685 - DEBUG - No XMPP flaps were noticed during the test
2026-10-20 13:30:28,686 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:51]
2026-10-20 13:30:28,686 - INFO - --------------------------------------------------------------------------------
2026-10-20 13:30:29,563 - INFO - Deleted project: ctest-TestBasicPolicy-14913026, ID : 523ac56d-0de7-4945-aad1-fc792e6c8743