2025-01-08 12:13:51,008 - INFO - Domain Default found not creating 2025-01-08 12:13:51,149 - INFO - Project ctest-TestBasicPolicy-82218872 not found, creating it 2025-01-08 12:13:51,601 - INFO - Created Project:ctest-TestBasicPolicy-82218872, ID : a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:13:52,986 - INFO - ================================================================================ 2025-01-08 12:13:52,986 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-08 12:13:52,986 - 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-01-08 12:13:53,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with 2025-01-08 12:13:53,245 - INFO - Initial checks done. Running the testcase now 2025-01-08 12:13:53,245 - INFO - 2025-01-08 12:13:53,776 - DEBUG - Response for create_network : {'network': {'id': 'bf275977-598b-41a9-bd36-0caeed7ee27c', 'name': 'ctest-vn-00558235', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-00558235'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 12:13:54,081 - DEBUG - Response for create_subnet : {'subnet': {'id': '938bd64d-5403-4237-a889-b832e81abf28', 'name': '', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'network_id': 'bf275977-598b-41a9-bd36-0caeed7ee27c', 'ip_version': 4, 'cidr': '11.6.18.192/26', 'allocation_pools': [{'start': '11.6.18.194', 'end': '11.6.18.254'}], 'gateway_ip': '11.6.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.6.18.194', 'tags': [], 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4'}} 2025-01-08 12:13:54,100 - INFO - Created VN ctest-vn-00558235 2025-01-08 12:13:54,152 - DEBUG - VN ctest-vn-00558235 UUID is bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:54,472 - DEBUG - Response for create_network : {'network': {'id': 'bcc2108d-5b1c-4a83-a1bd-8c52c8624baf', 'name': 'ctest-vn-91658737', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-91658737'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 12:13:54,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d85a5ba-fad7-417c-8061-d6396d9fdff6', 'name': '', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'network_id': 'bcc2108d-5b1c-4a83-a1bd-8c52c8624baf', 'ip_version': 4, 'cidr': '201.31.208.192/26', 'allocation_pools': [{'start': '201.31.208.194', 'end': '201.31.208.254'}], 'gateway_ip': '201.31.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.31.208.194', 'tags': [], 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4'}} 2025-01-08 12:13:54,700 - INFO - Created VN ctest-vn-91658737 2025-01-08 12:13:54,756 - DEBUG - VN ctest-vn-91658737 UUID is bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:54,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235, 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-82218872:ctest-vn-91658737, 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-01-08 12:13:55,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf275977-598b-41a9-bd36-0caeed7ee27c', 'name': 'ctest-vn-00558235', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['938bd64d-5403-4237-a889-b832e81abf28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-00558235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731']], 'subnet_ipam': [{'subnet_cidr': '11.6.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 12:13:55,422 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcc2108d-5b1c-4a83-a1bd-8c52c8624baf', 'name': 'ctest-vn-91658737', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d85a5ba-fad7-417c-8061-d6396d9fdff6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-91658737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731']], 'subnet_ipam': [{'subnet_cidr': '201.31.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 12:13:55,592 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:13:55,881 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:13:55,913 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88 2025-01-08 12:13:55,927 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:13:56,002 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:56,014 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:56,024 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6 2025-01-08 12:13:56,032 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6 2025-01-08 12:13:56,040 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/63c693b6-8a6b-4b71-b165-c3dbe07c48e7 2025-01-08 12:13:56,047 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 12:13:56,047 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:56,055 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6 2025-01-08 12:13:56,071 - INFO - Verified VN network id 8 for VN bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:56,071 - INFO - Verifications in API Server for VN ctest-vn-00558235 passed 2025-01-08 12:13:56,072 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:56,082 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6 2025-01-08 12:13:56,089 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6 2025-01-08 12:13:56,096 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/63c693b6-8a6b-4b71-b165-c3dbe07c48e7 2025-01-08 12:13:56,110 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82218872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13774076354474230185', 'uuid-lslong': '13634098867359113852'}, 'enable': 'true', 'created': '2025-01-08T12:13:53', 'last-modified': '2025-01-08T12:13:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933201'} 2025-01-08 12:13:56,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 12:13:56,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00558235 passed 2025-01-08 12:13:56,118 - DEBUG - ====Verifying policy data for ctest-vn-00558235 in API_Server ====== 2025-01-08 12:13:56,119 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:13:56,127 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88 2025-01-08 12:13:56,141 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:13:56,218 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c 2025-01-08 12:13:56,230 - DEBUG - ==>Verifying data for policy with id: 01c32e7b-7a04-4fd0-8739-4531e0fa065e, fqn: ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731'] 2025-01-08 12:13:56,230 - INFO - VN ctest-vn-00558235 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 12:13:56,230 - DEBUG - Verifying the vn in opserver 2025-01-08 12:13:56,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235 virtual network link through opserver 10.0.0.45 2025-01-08 12:13:56,231 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-08 12:13:56,528 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-08 12:13:56,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235?flat'} 2025-01-08 12:13:56,578 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235 is found in opserver 2025-01-08 12:13:56,588 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 12:13:56,592 - DEBUG - VRF ids for VN ctest-vn-00558235: {} 2025-01-08 12:13:56,592 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:13:56,598 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88 2025-01-08 12:13:56,608 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:13:56,681 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:56,693 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:56,703 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408 2025-01-08 12:13:56,710 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408 2025-01-08 12:13:56,717 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/06d73036-d532-4eb1-b767-61618b22b1cd 2025-01-08 12:13:56,725 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 12:13:56,725 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:56,733 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408 2025-01-08 12:13:56,746 - INFO - Verified VN network id 9 for VN bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:56,746 - INFO - Verifications in API Server for VN ctest-vn-91658737 passed 2025-01-08 12:13:56,746 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:56,756 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408 2025-01-08 12:13:56,762 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408 2025-01-08 12:13:56,769 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/06d73036-d532-4eb1-b767-61618b22b1cd 2025-01-08 12:13:56,781 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82218872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13601452023917333123', 'uuid-lslong': '11654625697881803695'}, 'enable': 'true', 'created': '2025-01-08T12:13:54', 'last-modified': '2025-01-08T12:13:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379900'} 2025-01-08 12:13:56,788 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 12:13:56,788 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91658737 passed 2025-01-08 12:13:56,788 - DEBUG - ====Verifying policy data for ctest-vn-91658737 in API_Server ====== 2025-01-08 12:13:56,788 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:13:56,794 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88 2025-01-08 12:13:56,805 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:13:56,872 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf 2025-01-08 12:13:56,881 - DEBUG - ==>Verifying data for policy with id: 01c32e7b-7a04-4fd0-8739-4531e0fa065e, fqn: ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731'] 2025-01-08 12:13:56,881 - INFO - VN ctest-vn-91658737 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 12:13:56,881 - DEBUG - Verifying the vn in opserver 2025-01-08 12:13:56,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737 virtual network link through opserver 10.0.0.45 2025-01-08 12:13:56,881 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-08 12:13:56,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737?flat'} 2025-01-08 12:13:56,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737 is found in opserver 2025-01-08 12:13:56,901 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 12:13:56,906 - DEBUG - VRF ids for VN ctest-vn-91658737: {} 2025-01-08 12:13:56,956 - DEBUG - Services list from nova: [, , ] 2025-01-08 12:13:57,927 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2561-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2561-1) 2025-01-08 12:13:59,119 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2561-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2561-1) 2025-01-08 12:13:59,119 - INFO - Waiting for VM ctest-TestBasicPolicy-82218872-95338614 to be up.. 2025-01-08 12:13:59,206 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 12:14:04,279 - DEBUG - VM is in ACTIVE state now 2025-01-08 12:14:04,280 - INFO - VM name : ctest-TestBasicPolicy-82218872-95338614 2025-01-08 12:14:04,351 - DEBUG - VM ctest-TestBasicPolicy-82218872-95338614 ID is 37dc756c-b10d-4728-85f8-11d5b9deef50 2025-01-08 12:14:04,372 - DEBUG - VM ctest-TestBasicPolicy-82218872-95338614 launched on Node cn-jenkins-deploy-platform-ansible-os-2561-1 2025-01-08 12:14:04,448 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/37dc756c-b10d-4728-85f8-11d5b9deef50 2025-01-08 12:14:04,457 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/aeb06231-41dc-4b5a-9bba-884b3bd0aa7f 2025-01-08 12:14:07,720 - 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 1019ms') 2025-01-08 12:14:07,720 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82218872-95338614 failed! 2025-01-08 12:14:07,776 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235 is 11.6.18.193 and allocation pool is NOT set 2025-01-08 12:14:09,836 - 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=7.53 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.240 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.240/3.882/7.525/3.642 ms') 2025-01-08 12:14:09,836 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82218872-95338614 passed 2025-01-08 12:14:09,984 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:14:09,984 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82218872-95338614, IP 11.6.18.195, Port 22 2025-01-08 12:14:10,149 - DEBUG - VM ctest-TestBasicPolicy-82218872-95338614 is ready for SSH connections 2025-01-08 12:14:10,150 - INFO - Waiting for VM ctest-TestBasicPolicy-82218872-59648408 to be up.. 2025-01-08 12:14:10,226 - DEBUG - VM is in ACTIVE state now 2025-01-08 12:14:10,226 - INFO - VM name : ctest-TestBasicPolicy-82218872-59648408 2025-01-08 12:14:10,298 - DEBUG - VM ctest-TestBasicPolicy-82218872-59648408 ID is 542d22ff-ee85-400f-9099-62611072f673 2025-01-08 12:14:10,298 - DEBUG - VM ctest-TestBasicPolicy-82218872-59648408 launched on Node cn-jenkins-deploy-platform-ansible-os-2561-1 2025-01-08 12:14:10,367 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/542d22ff-ee85-400f-9099-62611072f673 2025-01-08 12:14:10,376 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/87a307ed-efb8-487a-941c-0f906c6dd09a 2025-01-08 12:14:11,628 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.377 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.377/1.513/2.650/1.136 ms') 2025-01-08 12:14:11,628 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82218872-59648408 passed 2025-01-08 12:14:11,784 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:14:11,784 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82218872-59648408, IP 201.31.208.195, Port 22 2025-01-08 12:14:11,944 - DEBUG - VM ctest-TestBasicPolicy-82218872-59648408 is ready for SSH connections 2025-01-08 12:14:11,944 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:14:11,944 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.31.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-08 12:14:11,944 - DEBUG - ping -s 56 -c 3 -W 1 201.31.208.195 2025-01-08 12:14:15,621 - DEBUG - PING 201.31.208.195 (201.31.208.195): 56 data bytes 64 bytes from 201.31.208.195: seq=0 ttl=63 time=3.491 ms 64 bytes from 201.31.208.195: seq=1 ttl=63 time=0.838 ms 64 bytes from 201.31.208.195: seq=2 ttl=63 time=1.397 ms --- 201.31.208.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.838/1.908/3.491 ms 2025-01-08 12:14:15,621 - INFO - Ping to IP 201.31.208.195 from VM ctest-TestBasicPolicy-82218872-95338614 passed 2025-01-08 12:14:15,804 - DEBUG - Policy Update Response {"network-policy": {"uuid": "01c32e7b-7a04-4fd0-8739-4531e0fa065e", "href": "http://10.0.0.45:8082/network-policy/01c32e7b-7a04-4fd0-8739-4531e0fa065e"}} 2025-01-08 12:14:15,804 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:14:15,804 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.31.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-08 12:14:15,804 - DEBUG - ping -s 56 -c 3 -W 1 201.31.208.195 2025-01-08 12:14:19,006 - DEBUG - PING 201.31.208.195 (201.31.208.195): 56 data bytes --- 201.31.208.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-08 12:14:19,006 - WARNING - Ping to IP 201.31.208.195 from VM ctest-TestBasicPolicy-82218872-95338614 failed 2025-01-08 12:14:19,006 - INFO - Deleting VM ctest-TestBasicPolicy-82218872-59648408 2025-01-08 12:14:19,066 - INFO - Deleting VM ctest-TestBasicPolicy-82218872-95338614 2025-01-08 12:14:19,450 - INFO - Deleted policy ctest-policy-allow-all-88017731 2025-01-08 12:14:19,450 - INFO - Deleting VN ctest-vn-91658737 2025-01-08 12:14:19,490 - DEBUG - VN bcc2108d-5b1c-4a83-a1bd-8c52c8624baf still in use: Unable to complete operation on network bcc2108d-5b1c-4a83-a1bd-8c52c8624baf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5883d538-b23c-43ab-8a54-0cf1a91630ce'] 2025-01-08 12:14:19,490 - WARNING - Deleting VN ctest-vn-91658737 failed..Will retry 2025-01-08 12:14:21,603 - DEBUG - Response for deleting network () 2025-01-08 12:14:21,603 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408 2025-01-08 12:14:21,609 - DEBUG - Response Code: 404 2025-01-08 12:14:21,609 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:14:21,614 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88 2025-01-08 12:14:21,669 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:14:21,742 - INFO - Validated that VN ctest-vn-91658737 is not found in API Server 2025-01-08 12:14:21,752 - DEBUG - VN ctest-vn-91658737 is not present in Agent 10.0.0.45 2025-01-08 12:14:21,753 - INFO - Validated that VN ctest-vn-91658737 is not in any agent 2025-01-08 12:14:21,767 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91658737 info 2025-01-08 12:14:21,767 - INFO - Deleting VN ctest-vn-00558235 2025-01-08 12:14:21,866 - DEBUG - Response for deleting network () 2025-01-08 12:14:21,866 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6 2025-01-08 12:14:21,873 - DEBUG - Response Code: 404 2025-01-08 12:14:21,873 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-08 12:14:21,878 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88 2025-01-08 12:14:21,933 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4 2025-01-08 12:14:22,006 - INFO - Validated that VN ctest-vn-00558235 is not found in API Server 2025-01-08 12:14:22,016 - DEBUG - VN ctest-vn-00558235 is not present in Agent 10.0.0.45 2025-01-08 12:14:22,016 - INFO - Validated that VN ctest-vn-00558235 is not in any agent 2025-01-08 12:14:22,030 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00558235 info 2025-01-08 12:14:22,285 - DEBUG - No XMPP flaps were noticed during the test
2025-01-08 12:14:22,285 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-01-08 12:14:22,285 - INFO - -------------------------------------------------------------------------------- 2025-01-08 12:14:22,942 - INFO - Deleted project: ctest-TestBasicPolicy-82218872, ID : a43dbe3e-6c4e-41f1-82f2-b2994ac598e4