2025-04-03 16:03:30,628 - INFO - Domain Default found not creating 2025-04-03 16:03:30,784 - INFO - Project ctest-TestBasicPolicy-25104439 not found, creating it 2025-04-03 16:03:31,284 - INFO - Created Project:ctest-TestBasicPolicy-25104439, ID : 59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:03:32,990 - INFO - ================================================================================ 2025-04-03 16:03:32,990 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-03 16:03:32,990 - 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 2025-04-03 16:03:33,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.5': '0'}} with 2025-04-03 16:03:33,253 - INFO - Initial checks done. Running the testcase now 2025-04-03 16:03:33,253 - INFO - 2025-04-03 16:03:33,887 - DEBUG - Response for create_network : {'network': {'id': 'aab35e75-3a3d-4bed-bdb5-2a2c33b5e330', 'name': 'ctest-vn-83740470', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-83740470'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:03:34,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '94f2ca4f-49f7-4ba2-bf09-9215ea7d175e', 'name': '', 'tenant_id': '59762086792040a686516744646213b6', 'network_id': 'aab35e75-3a3d-4bed-bdb5-2a2c33b5e330', 'ip_version': 4, 'cidr': '165.59.42.0/26', 'allocation_pools': [{'start': '165.59.42.2', 'end': '165.59.42.62'}], 'gateway_ip': '165.59.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.59.42.2', 'tags': [], 'project_id': '59762086792040a686516744646213b6'}} 2025-04-03 16:03:34,081 - INFO - Created VN ctest-vn-83740470 2025-04-03 16:03:34,135 - DEBUG - VN ctest-vn-83740470 UUID is aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:34,452 - DEBUG - Response for create_network : {'network': {'id': '981cfd88-9693-4cd5-a824-0e2561b3d2e5', 'name': 'ctest-vn-99651093', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-99651093'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:03:34,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '81135bd0-60ba-45ac-8c4e-21d8f3248da2', 'name': '', 'tenant_id': '59762086792040a686516744646213b6', 'network_id': '981cfd88-9693-4cd5-a824-0e2561b3d2e5', 'ip_version': 4, 'cidr': '189.145.238.192/26', 'allocation_pools': [{'start': '189.145.238.194', 'end': '189.145.238.254'}], 'gateway_ip': '189.145.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.145.238.194', 'tags': [], 'project_id': '59762086792040a686516744646213b6'}} 2025-04-03 16:03:34,662 - INFO - Created VN ctest-vn-99651093 2025-04-03 16:03:34,715 - DEBUG - VN ctest-vn-99651093 UUID is 981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:34,840 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470, 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-25104439:ctest-vn-99651093, 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] 2025-04-03 16:03:35,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aab35e75-3a3d-4bed-bdb5-2a2c33b5e330', 'name': 'ctest-vn-83740470', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94f2ca4f-49f7-4ba2-bf09-9215ea7d175e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-83740470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221']], 'subnet_ipam': [{'subnet_cidr': '165.59.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:03:35,432 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '981cfd88-9693-4cd5-a824-0e2561b3d2e5', 'name': 'ctest-vn-99651093', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81135bd0-60ba-45ac-8c4e-21d8f3248da2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-99651093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221']], 'subnet_ipam': [{'subnet_cidr': '189.145.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:03:35,611 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:03:35,951 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:03:35,982 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed 2025-04-03 16:03:35,999 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:03:36,075 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:36,089 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:36,102 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a 2025-04-03 16:03:36,111 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a 2025-04-03 16:03:36,119 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/46c2b7da-a358-4db8-9c50-d1d0d7b6cc05 2025-04-03 16:03:36,127 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 16:03:36,127 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:36,139 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a 2025-04-03 16:03:36,159 - INFO - Verified VN network id 9 for VN aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:36,159 - INFO - Verifications in API Server for VN ctest-vn-83740470 passed 2025-04-03 16:03:36,159 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:36,172 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a 2025-04-03 16:03:36,182 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a 2025-04-03 16:03:36,191 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/46c2b7da-a358-4db8-9c50-d1d0d7b6cc05 2025-04-03 16:03:36,207 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25104439', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12300278864860236781', 'uuid-lslong': '13669878613287494448'}, 'enable': 'true', 'created': '2025-04-03T16:03:33', 'last-modified': '2025-04-03T16:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073902'} 2025-04-03 16:03:36,215 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 16:03:36,215 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83740470 passed 2025-04-03 16:03:36,215 - DEBUG - ====Verifying policy data for ctest-vn-83740470 in API_Server ====== 2025-04-03 16:03:36,216 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:03:36,224 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed 2025-04-03 16:03:36,239 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:03:36,323 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330 2025-04-03 16:03:36,335 - DEBUG - ==>Verifying data for policy with id: d3a138ce-81ca-49a8-8c41-900f1ae23bd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221'] 2025-04-03 16:03:36,336 - INFO - VN ctest-vn-83740470 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 16:03:36,336 - DEBUG - Verifying the vn in opserver 2025-04-03 16:03:36,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470 virtual network link through opserver 10.0.0.30 2025-04-03 16:03:36,336 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-04-03 16:03:36,671 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-04-03 16:03:36,745 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470?flat'} 2025-04-03 16:03:36,745 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470 is found in opserver 2025-04-03 16:03:36,758 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 16:03:36,764 - DEBUG - VRF ids for VN ctest-vn-83740470: {} 2025-04-03 16:03:36,764 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:03:36,771 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed 2025-04-03 16:03:36,785 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:03:36,864 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:36,879 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:36,890 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a 2025-04-03 16:03:36,899 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a 2025-04-03 16:03:36,908 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/689b96a1-ea2f-47c2-8a83-95e693fa503c 2025-04-03 16:03:36,916 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 16:03:36,916 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:36,928 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a 2025-04-03 16:03:36,944 - INFO - Verified VN network id 10 for VN 981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:36,945 - INFO - Verifications in API Server for VN ctest-vn-99651093 passed 2025-04-03 16:03:36,945 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:36,957 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a 2025-04-03 16:03:36,965 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a 2025-04-03 16:03:36,974 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/689b96a1-ea2f-47c2-8a83-95e693fa503c 2025-04-03 16:03:36,989 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25104439', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10960914356196560085', 'uuid-lslong': '12115824451249230565'}, 'enable': 'true', 'created': '2025-04-03T16:03:34', 'last-modified': '2025-04-03T16:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607506'} 2025-04-03 16:03:36,996 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 16:03:36,996 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99651093 passed 2025-04-03 16:03:36,997 - DEBUG - ====Verifying policy data for ctest-vn-99651093 in API_Server ====== 2025-04-03 16:03:36,997 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:03:37,003 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed 2025-04-03 16:03:37,017 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:03:37,097 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5 2025-04-03 16:03:37,109 - DEBUG - ==>Verifying data for policy with id: d3a138ce-81ca-49a8-8c41-900f1ae23bd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221'] 2025-04-03 16:03:37,109 - INFO - VN ctest-vn-99651093 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 16:03:37,109 - DEBUG - Verifying the vn in opserver 2025-04-03 16:03:37,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093 virtual network link through opserver 10.0.0.30 2025-04-03 16:03:37,110 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-04-03 16:03:37,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093?flat'} 2025-04-03 16:03:37,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093 is found in opserver 2025-04-03 16:03:37,136 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 16:03:37,143 - DEBUG - VRF ids for VN ctest-vn-99651093: {} 2025-04-03 16:03:37,205 - DEBUG - Services list from nova: [, , ] 2025-04-03 16:03:38,367 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3027-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3027-1) 2025-04-03 16:03:39,817 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3027-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3027-1) 2025-04-03 16:03:39,817 - INFO - Waiting for VM ctest-TestBasicPolicy-25104439-01965201 to be up.. 2025-04-03 16:03:39,961 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-03 16:03:45,054 - DEBUG - VM is in ACTIVE state now 2025-04-03 16:03:45,054 - INFO - VM name : ctest-TestBasicPolicy-25104439-01965201 2025-04-03 16:03:45,145 - DEBUG - VM ctest-TestBasicPolicy-25104439-01965201 ID is 3b6219db-8454-4243-8dc9-6dc7c022ea30 2025-04-03 16:03:45,167 - DEBUG - VM ctest-TestBasicPolicy-25104439-01965201 launched on Node cn-jenkins-deploy-platform-ansible-os-3027-1 2025-04-03 16:03:45,253 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/3b6219db-8454-4243-8dc9-6dc7c022ea30 2025-04-03 16:03:45,263 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/97483b71-2f65-4bb9-81c4-cea2879fece7 2025-04-03 16:03:48,546 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1030ms') 2025-04-03 16:03:48,546 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25104439-01965201 failed! 2025-04-03 16:03:48,611 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470 is 165.59.42.1 and allocation pool is NOT set 2025-04-03 16:03:50,677 - 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=1 ttl=63 time=5.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.00 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.995/3.996/4.997/1.001 ms') 2025-04-03 16:03:50,677 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25104439-01965201 passed 2025-04-03 16:03:50,847 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:03:50,847 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25104439-01965201, IP 165.59.42.3, Port 22 2025-04-03 16:03:50,902 - 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': ''} 2025-04-03 16:03:50,991 - DEBUG - VM ctest-TestBasicPolicy-25104439-01965201 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-03 16:03:55,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:03:55,992 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25104439-01965201, IP 165.59.42.3, Port 22 2025-04-03 16:03:56,161 - DEBUG - VM ctest-TestBasicPolicy-25104439-01965201 is ready for SSH connections 2025-04-03 16:03:56,161 - INFO - Waiting for VM ctest-TestBasicPolicy-25104439-30560491 to be up.. 2025-04-03 16:03:56,258 - DEBUG - VM is in ACTIVE state now 2025-04-03 16:03:56,258 - INFO - VM name : ctest-TestBasicPolicy-25104439-30560491 2025-04-03 16:03:56,347 - DEBUG - VM ctest-TestBasicPolicy-25104439-30560491 ID is 8a405431-0f03-4721-a36c-425029af994c 2025-04-03 16:03:56,348 - DEBUG - VM ctest-TestBasicPolicy-25104439-30560491 launched on Node cn-jenkins-deploy-platform-ansible-os-3027-1 2025-04-03 16:03:56,438 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/8a405431-0f03-4721-a36c-425029af994c 2025-04-03 16:03:56,449 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/7291d1dd-42ad-490d-8c55-1d2d4375ff27 2025-04-03 16:03:57,701 - 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=3.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.454 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.454/1.975/3.496/1.521 ms') 2025-04-03 16:03:57,701 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25104439-30560491 passed 2025-04-03 16:03:57,855 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:03:57,855 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25104439-30560491, IP 189.145.238.195, Port 22 2025-04-03 16:03:58,021 - DEBUG - VM ctest-TestBasicPolicy-25104439-30560491 is ready for SSH connections 2025-04-03 16:03:58,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:03:58,022 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.145.238.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-04-03 16:03:58,022 - DEBUG - ping -s 56 -c 3 -W 1 189.145.238.195 2025-04-03 16:04:01,774 - DEBUG - PING 189.145.238.195 (189.145.238.195): 56 data bytes 64 bytes from 189.145.238.195: seq=0 ttl=63 time=4.634 ms 64 bytes from 189.145.238.195: seq=1 ttl=63 time=0.986 ms 64 bytes from 189.145.238.195: seq=2 ttl=63 time=1.040 ms --- 189.145.238.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.986/2.220/4.634 ms 2025-04-03 16:04:01,774 - INFO - Ping to IP 189.145.238.195 from VM ctest-TestBasicPolicy-25104439-01965201 passed 2025-04-03 16:04:02,019 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d3a138ce-81ca-49a8-8c41-900f1ae23bd3", "href": "http://10.0.0.30:8082/network-policy/d3a138ce-81ca-49a8-8c41-900f1ae23bd3"}} 2025-04-03 16:04:02,019 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:04:02,019 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.145.238.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-04-03 16:04:02,019 - DEBUG - ping -s 56 -c 3 -W 1 189.145.238.195 2025-04-03 16:04:05,248 - DEBUG - PING 189.145.238.195 (189.145.238.195): 56 data bytes 64 bytes from 189.145.238.195: seq=0 ttl=63 time=1.651 ms --- 189.145.238.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.651/1.651/1.651 ms 2025-04-03 16:04:05,248 - WARNING - Ping to IP 189.145.238.195 from VM ctest-TestBasicPolicy-25104439-01965201 failed 2025-04-03 16:04:05,248 - INFO - Deleting VM ctest-TestBasicPolicy-25104439-30560491 2025-04-03 16:04:05,326 - INFO - Deleting VM ctest-TestBasicPolicy-25104439-01965201 2025-04-03 16:04:05,749 - INFO - Deleted policy ctest-policy-allow-all-20249221 2025-04-03 16:04:05,749 - INFO - Deleting VN ctest-vn-99651093 2025-04-03 16:04:05,795 - DEBUG - VN 981cfd88-9693-4cd5-a824-0e2561b3d2e5 still in use: Unable to complete operation on network 981cfd88-9693-4cd5-a824-0e2561b3d2e5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f340514b-8729-4c8a-a6c1-4aa33db388ee'] 2025-04-03 16:04:05,795 - WARNING - Deleting VN ctest-vn-99651093 failed..Will retry 2025-04-03 16:04:07,919 - DEBUG - Response for deleting network () 2025-04-03 16:04:07,919 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a 2025-04-03 16:04:07,930 - DEBUG - Response Code: 404 2025-04-03 16:04:07,930 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:04:07,938 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed 2025-04-03 16:04:08,000 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:04:08,088 - INFO - Validated that VN ctest-vn-99651093 is not found in API Server 2025-04-03 16:04:08,103 - DEBUG - VN ctest-vn-99651093 is not present in Agent 10.0.0.30 2025-04-03 16:04:08,103 - INFO - Validated that VN ctest-vn-99651093 is not in any agent 2025-04-03 16:04:08,126 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99651093 info 2025-04-03 16:04:08,126 - INFO - Deleting VN ctest-vn-83740470 2025-04-03 16:04:08,251 - DEBUG - Response for deleting network () 2025-04-03 16:04:08,251 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a 2025-04-03 16:04:08,259 - DEBUG - Response Code: 404 2025-04-03 16:04:08,260 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-04-03 16:04:08,269 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed 2025-04-03 16:04:08,325 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6 2025-04-03 16:04:08,414 - INFO - Validated that VN ctest-vn-83740470 is not found in API Server 2025-04-03 16:04:08,429 - DEBUG - VN ctest-vn-83740470 is not present in Agent 10.0.0.30 2025-04-03 16:04:08,429 - INFO - Validated that VN ctest-vn-83740470 is not in any agent 2025-04-03 16:04:08,445 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83740470 info 2025-04-03 16:04:08,702 - DEBUG - No XMPP flaps were noticed during the test
2025-04-03 16:04:08,702 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-04-03 16:04:08,702 - INFO - -------------------------------------------------------------------------------- 2025-04-03 16:04:09,449 - INFO - Deleted project: ctest-TestBasicPolicy-25104439, ID : 59762086-7920-40a6-8651-6744646213b6