2025-01-07 18:41:56,123 - INFO - Domain Default found not creating 2025-01-07 18:41:56,265 - INFO - Project ctest-TestBasicPolicy-16124435 not found, creating it 2025-01-07 18:41:56,752 - INFO - Created Project:ctest-TestBasicPolicy-16124435, ID : efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:41:58,240 - INFO - ================================================================================ 2025-01-07 18:41:58,240 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-07 18:41:58,240 - 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-07 18:41:58,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.20': '0'}} with 2025-01-07 18:41:58,495 - INFO - Initial checks done. Running the testcase now 2025-01-07 18:41:58,495 - INFO - 2025-01-07 18:41:59,033 - DEBUG - Response for create_network : {'network': {'id': '9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c', 'name': 'ctest-vn-56760331', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-56760331'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 18:41:59,213 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0a09370-0927-4efc-8581-447866a50cf3', 'name': '', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'network_id': '9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c', 'ip_version': 4, 'cidr': '150.148.10.192/26', 'allocation_pools': [{'start': '150.148.10.194', 'end': '150.148.10.254'}], 'gateway_ip': '150.148.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.148.10.194', 'tags': [], 'project_id': 'efe39e2877834c92a1b21d19dd80323c'}} 2025-01-07 18:41:59,232 - INFO - Created VN ctest-vn-56760331 2025-01-07 18:41:59,285 - DEBUG - VN ctest-vn-56760331 UUID is 9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:41:59,579 - DEBUG - Response for create_network : {'network': {'id': '4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda', 'name': 'ctest-vn-08512973', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-08512973'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 18:41:59,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '5629eaba-c2ec-4ce4-a898-d372bb104011', 'name': '', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'network_id': '4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda', 'ip_version': 4, 'cidr': '4.85.60.64/26', 'allocation_pools': [{'start': '4.85.60.66', 'end': '4.85.60.126'}], 'gateway_ip': '4.85.60.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.85.60.66', 'tags': [], 'project_id': 'efe39e2877834c92a1b21d19dd80323c'}} 2025-01-07 18:41:59,738 - INFO - Created VN ctest-vn-08512973 2025-01-07 18:41:59,793 - DEBUG - VN ctest-vn-08512973 UUID is 4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:41:59,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331, 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-16124435:ctest-vn-08512973, 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-07 18:42:00,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c', 'name': 'ctest-vn-56760331', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0a09370-0927-4efc-8581-447866a50cf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-56760331'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195']], 'subnet_ipam': [{'subnet_cidr': '150.148.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-07 18:42:00,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda', 'name': 'ctest-vn-08512973', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5629eaba-c2ec-4ce4-a898-d372bb104011'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-08512973'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195']], 'subnet_ipam': [{'subnet_cidr': '4.85.60.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-07 18:42:00,605 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:00,906 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:00,932 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d 2025-01-07 18:42:00,944 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:42:01,019 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:42:01,031 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:42:01,044 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274 2025-01-07 18:42:01,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274 2025-01-07 18:42:01,059 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c7669756-875f-475d-bd53-50d0bc240ac1 2025-01-07 18:42:01,065 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-07 18:42:01,065 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:42:01,074 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274 2025-01-07 18:42:01,088 - INFO - Verified VN network id 7 for VN 9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:42:01,088 - INFO - Verifications in API Server for VN ctest-vn-56760331 passed 2025-01-07 18:42:01,088 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:42:01,098 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274 2025-01-07 18:42:01,105 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274 2025-01-07 18:42:01,111 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c7669756-875f-475d-bd53-50d0bc240ac1 2025-01-07 18:42:01,124 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16124435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11182093328912893518', 'uuid-lslong': '12909600008192241468'}, 'enable': 'true', 'created': '2025-01-07T18:41:59', 'last-modified': '2025-01-07T18:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906850'} 2025-01-07 18:42:01,130 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-07 18:42:01,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56760331 passed 2025-01-07 18:42:01,131 - DEBUG - ====Verifying policy data for ctest-vn-56760331 in API_Server ====== 2025-01-07 18:42:01,131 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:01,136 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d 2025-01-07 18:42:01,147 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:42:01,224 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c 2025-01-07 18:42:01,237 - DEBUG - ==>Verifying data for policy with id: 9c9a939d-5acc-43fa-8e21-5e4659afb19d, fqn: ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195'] 2025-01-07 18:42:01,237 - INFO - VN ctest-vn-56760331 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-07 18:42:01,238 - DEBUG - Verifying the vn in opserver 2025-01-07 18:42:01,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331 virtual network link through opserver 10.0.0.33 2025-01-07 18:42:01,238 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-07 18:42:01,533 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-07 18:42:01,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331?flat'} 2025-01-07 18:42:01,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331 is found in opserver 2025-01-07 18:42:01,595 - DEBUG - Do not have enough data to verify VN in agent 2025-01-07 18:42:01,600 - DEBUG - VRF ids for VN ctest-vn-56760331: {} 2025-01-07 18:42:01,600 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:01,606 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d 2025-01-07 18:42:01,620 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:42:01,692 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:42:01,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:42:01,719 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940 2025-01-07 18:42:01,726 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940 2025-01-07 18:42:01,734 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6a6c656c-8d98-42b5-8cba-05032d7645e5 2025-01-07 18:42:01,741 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-07 18:42:01,741 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:42:01,751 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940 2025-01-07 18:42:01,768 - INFO - Verified VN network id 8 for VN 4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:42:01,769 - INFO - Verifications in API Server for VN ctest-vn-08512973 passed 2025-01-07 18:42:01,769 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:42:01,781 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940 2025-01-07 18:42:01,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940 2025-01-07 18:42:01,795 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6a6c656c-8d98-42b5-8cba-05032d7645e5 2025-01-07 18:42:01,810 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16124435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5519899261582655566', 'uuid-lslong': '12962417070616722394'}, 'enable': 'true', 'created': '2025-01-07T18:41:59', 'last-modified': '2025-01-07T18:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350303'} 2025-01-07 18:42:01,817 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-07 18:42:01,818 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08512973 passed 2025-01-07 18:42:01,818 - DEBUG - ====Verifying policy data for ctest-vn-08512973 in API_Server ====== 2025-01-07 18:42:01,818 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:01,824 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d 2025-01-07 18:42:01,835 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:42:01,912 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda 2025-01-07 18:42:01,923 - DEBUG - ==>Verifying data for policy with id: 9c9a939d-5acc-43fa-8e21-5e4659afb19d, fqn: ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195'] 2025-01-07 18:42:01,923 - INFO - VN ctest-vn-08512973 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-07 18:42:01,923 - DEBUG - Verifying the vn in opserver 2025-01-07 18:42:01,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973 virtual network link through opserver 10.0.0.33 2025-01-07 18:42:01,923 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-07 18:42:01,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973?flat'} 2025-01-07 18:42:01,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973 is found in opserver 2025-01-07 18:42:01,945 - DEBUG - Do not have enough data to verify VN in agent 2025-01-07 18:42:01,950 - DEBUG - VRF ids for VN ctest-vn-08512973: {} 2025-01-07 18:42:02,006 - DEBUG - Services list from nova: [, , ] 2025-01-07 18:42:03,107 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2553-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2553-1) 2025-01-07 18:42:04,192 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2553-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2553-1) 2025-01-07 18:42:04,192 - INFO - Waiting for VM ctest-TestBasicPolicy-16124435-57061173 to be up.. 2025-01-07 18:42:04,279 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-07 18:42:09,361 - DEBUG - VM is in ACTIVE state now 2025-01-07 18:42:09,361 - INFO - VM name : ctest-TestBasicPolicy-16124435-57061173 2025-01-07 18:42:09,442 - DEBUG - VM ctest-TestBasicPolicy-16124435-57061173 ID is bd12bcf1-aaa2-4de5-a9b3-b6dae52b61b6 2025-01-07 18:42:09,461 - DEBUG - VM ctest-TestBasicPolicy-16124435-57061173 launched on Node cn-jenkins-deploy-platform-ansible-os-2553-1 2025-01-07 18:42:09,541 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/bd12bcf1-aaa2-4de5-a9b3-b6dae52b61b6 2025-01-07 18:42:09,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/98aadf89-6cee-411b-873b-4d4c4c4efa2b 2025-01-07 18:42:12,802 - 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-07 18:42:12,802 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16124435-57061173 failed! 2025-01-07 18:42:12,857 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331 is 150.148.10.193 and allocation pool is NOT set 2025-01-07 18:42:14,921 - 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=4.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.679 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.679/2.688/4.697/2.009 ms') 2025-01-07 18:42:14,921 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16124435-57061173 passed 2025-01-07 18:42:15,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:42:15,069 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16124435-57061173, IP 150.148.10.195, Port 22 2025-01-07 18:42:15,225 - DEBUG - VM ctest-TestBasicPolicy-16124435-57061173 is ready for SSH connections 2025-01-07 18:42:15,225 - INFO - Waiting for VM ctest-TestBasicPolicy-16124435-42419153 to be up.. 2025-01-07 18:42:15,337 - DEBUG - VM is in ACTIVE state now 2025-01-07 18:42:15,337 - INFO - VM name : ctest-TestBasicPolicy-16124435-42419153 2025-01-07 18:42:15,425 - DEBUG - VM ctest-TestBasicPolicy-16124435-42419153 ID is bc54a257-ec18-41c5-84f3-fe2247855c82 2025-01-07 18:42:15,425 - DEBUG - VM ctest-TestBasicPolicy-16124435-42419153 launched on Node cn-jenkins-deploy-platform-ansible-os-2553-1 2025-01-07 18:42:15,507 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/bc54a257-ec18-41c5-84f3-fe2247855c82 2025-01-07 18:42:15,516 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/0002058a-5ecc-4f9a-a763-4212417db2b7 2025-01-07 18:42:16,758 - 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=4.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.09 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 = 1.093/2.902/4.712/1.809 ms') 2025-01-07 18:42:16,759 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16124435-42419153 passed 2025-01-07 18:42:16,909 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:42:16,909 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16124435-42419153, IP 4.85.60.67, Port 22 2025-01-07 18:42:17,061 - DEBUG - VM ctest-TestBasicPolicy-16124435-42419153 is ready for SSH connections 2025-01-07 18:42:17,061 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:42:17,061 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.85.60.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-07 18:42:17,061 - DEBUG - ping -s 56 -c 3 -W 1 4.85.60.67 2025-01-07 18:42:21,016 - DEBUG - PING 4.85.60.67 (4.85.60.67): 56 data bytes 64 bytes from 4.85.60.67: seq=0 ttl=63 time=4.029 ms 64 bytes from 4.85.60.67: seq=1 ttl=63 time=0.824 ms 64 bytes from 4.85.60.67: seq=2 ttl=63 time=0.837 ms --- 4.85.60.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.824/1.896/4.029 ms 2025-01-07 18:42:21,018 - INFO - Ping to IP 4.85.60.67 from VM ctest-TestBasicPolicy-16124435-57061173 passed 2025-01-07 18:42:21,192 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9c9a939d-5acc-43fa-8e21-5e4659afb19d", "href": "http://10.0.0.33:8082/network-policy/9c9a939d-5acc-43fa-8e21-5e4659afb19d"}} 2025-01-07 18:42:21,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:42:21,193 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.85.60.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-07 18:42:21,193 - DEBUG - ping -s 56 -c 3 -W 1 4.85.60.67 2025-01-07 18:42:24,398 - DEBUG - PING 4.85.60.67 (4.85.60.67): 56 data bytes 64 bytes from 4.85.60.67: seq=0 ttl=63 time=1.491 ms --- 4.85.60.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.491/1.491/1.491 ms 2025-01-07 18:42:24,398 - WARNING - Ping to IP 4.85.60.67 from VM ctest-TestBasicPolicy-16124435-57061173 failed 2025-01-07 18:42:24,399 - INFO - Deleting VM ctest-TestBasicPolicy-16124435-42419153 2025-01-07 18:42:24,464 - INFO - Deleting VM ctest-TestBasicPolicy-16124435-57061173 2025-01-07 18:42:24,855 - INFO - Deleted policy ctest-policy-allow-all-25177195 2025-01-07 18:42:24,856 - INFO - Deleting VN ctest-vn-08512973 2025-01-07 18:42:24,890 - DEBUG - VN 4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda still in use: Unable to complete operation on network 4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9b1112d2-2a99-48c4-ba35-a29d0ffbd7a2'] 2025-01-07 18:42:24,890 - WARNING - Deleting VN ctest-vn-08512973 failed..Will retry 2025-01-07 18:42:27,017 - DEBUG - Response for deleting network () 2025-01-07 18:42:27,017 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940 2025-01-07 18:42:27,027 - DEBUG - Response Code: 404 2025-01-07 18:42:27,027 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:27,033 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d 2025-01-07 18:42:27,090 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:42:27,169 - INFO - Validated that VN ctest-vn-08512973 is not found in API Server 2025-01-07 18:42:27,180 - DEBUG - VN ctest-vn-08512973 is not present in Agent 10.0.0.33 2025-01-07 18:42:27,181 - INFO - Validated that VN ctest-vn-08512973 is not in any agent 2025-01-07 18:42:27,195 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08512973 info 2025-01-07 18:42:27,195 - INFO - Deleting VN ctest-vn-56760331 2025-01-07 18:42:27,302 - DEBUG - Response for deleting network () 2025-01-07 18:42:27,302 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274 2025-01-07 18:42:27,308 - DEBUG - Response Code: 404 2025-01-07 18:42:27,308 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-07 18:42:27,316 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d 2025-01-07 18:42:27,370 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c 2025-01-07 18:42:27,445 - INFO - Validated that VN ctest-vn-56760331 is not found in API Server 2025-01-07 18:42:27,456 - DEBUG - VN ctest-vn-56760331 is not present in Agent 10.0.0.33 2025-01-07 18:42:27,456 - INFO - Validated that VN ctest-vn-56760331 is not in any agent 2025-01-07 18:42:27,471 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56760331 info 2025-01-07 18:42:27,730 - DEBUG - No XMPP flaps were noticed during the test
2025-01-07 18:42:27,730 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-01-07 18:42:27,730 - INFO - -------------------------------------------------------------------------------- 2025-01-07 18:42:28,384 - INFO - Deleted project: ctest-TestBasicPolicy-16124435, ID : efe39e28-7783-4c92-a1b2-1d19dd80323c