2025-03-25 22:51:56,227 - INFO - Domain Default found not creating 2025-03-25 22:51:56,386 - INFO - Project ctest-TestBasicPolicy-08282249 not found, creating it 2025-03-25 22:51:56,872 - INFO - Created Project:ctest-TestBasicPolicy-08282249, ID : de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:51:58,363 - INFO - ================================================================================ 2025-03-25 22:51:58,363 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-25 22:51:58,363 - 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-03-25 22:51:58,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.17': '0'}} with 2025-03-25 22:51:58,617 - INFO - Initial checks done. Running the testcase now 2025-03-25 22:51:58,617 - INFO - 2025-03-25 22:51:59,179 - DEBUG - Response for create_network : {'network': {'id': '36d81598-b4d1-4b2a-a5b3-be07c2071782', 'name': 'ctest-vn-76124477', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-76124477'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 22:51:59,400 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c98252fa-c60c-448a-9f78-c4db540b0e31', 'name': '', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'network_id': '36d81598-b4d1-4b2a-a5b3-be07c2071782', 'ip_version': 4, 'cidr': '187.73.140.128/26', 'allocation_pools': [{'start': '187.73.140.130', 'end': '187.73.140.190'}], 'gateway_ip': '187.73.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.73.140.130', 'tags': [], 'project_id': 'de9da75860524c26b8a33ee72e067692'}} 2025-03-25 22:51:59,419 - INFO - Created VN ctest-vn-76124477 2025-03-25 22:51:59,474 - DEBUG - VN ctest-vn-76124477 UUID is 36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:51:59,787 - DEBUG - Response for create_network : {'network': {'id': 'a8b660e7-d083-4755-9536-1e6bc54b53c9', 'name': 'ctest-vn-59013523', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-59013523'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 22:51:59,972 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f93fc4b7-f0df-4c4c-8966-32dc7ce8255c', 'name': '', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'network_id': 'a8b660e7-d083-4755-9536-1e6bc54b53c9', 'ip_version': 4, 'cidr': '25.101.82.0/26', 'allocation_pools': [{'start': '25.101.82.2', 'end': '25.101.82.62'}], 'gateway_ip': '25.101.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.101.82.2', 'tags': [], 'project_id': 'de9da75860524c26b8a33ee72e067692'}} 2025-03-25 22:51:59,993 - INFO - Created VN ctest-vn-59013523 2025-03-25 22:52:00,051 - DEBUG - VN ctest-vn-59013523 UUID is a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:00,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477, 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-08282249:ctest-vn-59013523, 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-03-25 22:52:00,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36d81598-b4d1-4b2a-a5b3-be07c2071782', 'name': 'ctest-vn-76124477', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c98252fa-c60c-448a-9f78-c4db540b0e31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-76124477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678']], 'subnet_ipam': [{'subnet_cidr': '187.73.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 22:52:00,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8b660e7-d083-4755-9536-1e6bc54b53c9', 'name': 'ctest-vn-59013523', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f93fc4b7-f0df-4c4c-8966-32dc7ce8255c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-59013523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678']], 'subnet_ipam': [{'subnet_cidr': '25.101.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 22:52:00,947 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:01,248 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:01,276 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d 2025-03-25 22:52:01,291 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:52:01,364 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:52:01,377 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:52:01,389 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f 2025-03-25 22:52:01,397 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f 2025-03-25 22:52:01,404 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/c401efd9-c980-472b-9d01-c6ac051ff321 2025-03-25 22:52:01,410 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 22:52:01,411 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:52:01,421 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f 2025-03-25 22:52:01,438 - INFO - Verified VN network id 8 for VN 36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:52:01,438 - INFO - Verifications in API Server for VN ctest-vn-76124477 passed 2025-03-25 22:52:01,438 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:52:01,452 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f 2025-03-25 22:52:01,463 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f 2025-03-25 22:52:01,472 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/c401efd9-c980-472b-9d01-c6ac051ff321 2025-03-25 22:52:01,486 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08282249', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3951932418630437674', 'uuid-lslong': '11940095977618610050'}, 'enable': 'true', 'created': '2025-03-25T22:51:59', 'last-modified': '2025-03-25T22:52:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025206'} 2025-03-25 22:52:01,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 22:52:01,494 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76124477 passed 2025-03-25 22:52:01,494 - DEBUG - ====Verifying policy data for ctest-vn-76124477 in API_Server ====== 2025-03-25 22:52:01,494 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:01,500 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d 2025-03-25 22:52:01,512 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:52:01,588 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782 2025-03-25 22:52:01,600 - DEBUG - ==>Verifying data for policy with id: 0a66e0f0-dc30-4444-a995-58ad5119c10e, fqn: ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678'] 2025-03-25 22:52:01,600 - INFO - VN ctest-vn-76124477 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 22:52:01,600 - DEBUG - Verifying the vn in opserver 2025-03-25 22:52:01,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477 virtual network link through opserver 10.0.0.42 2025-03-25 22:52:01,601 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-25 22:52:01,897 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-25 22:52:01,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477?flat'} 2025-03-25 22:52:01,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477 is found in opserver 2025-03-25 22:52:01,982 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 22:52:01,988 - DEBUG - VRF ids for VN ctest-vn-76124477: {} 2025-03-25 22:52:01,988 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:01,994 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d 2025-03-25 22:52:02,010 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:52:02,080 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:02,094 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:02,105 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf 2025-03-25 22:52:02,115 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf 2025-03-25 22:52:02,123 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7d521dd4-d17b-4c91-b5fc-3fe9159e843a 2025-03-25 22:52:02,131 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 22:52:02,131 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:02,141 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf 2025-03-25 22:52:02,155 - INFO - Verified VN network id 9 for VN a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:02,156 - INFO - Verifications in API Server for VN ctest-vn-59013523 passed 2025-03-25 22:52:02,156 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:02,166 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf 2025-03-25 22:52:02,175 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf 2025-03-25 22:52:02,183 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7d521dd4-d17b-4c91-b5fc-3fe9159e843a 2025-03-25 22:52:02,197 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08282249', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12157010792885208917', 'uuid-lslong': '10751814608614020041'}, 'enable': 'true', 'created': '2025-03-25T22:51:59', 'last-modified': '2025-03-25T22:52:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484560'} 2025-03-25 22:52:02,204 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 22:52:02,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59013523 passed 2025-03-25 22:52:02,204 - DEBUG - ====Verifying policy data for ctest-vn-59013523 in API_Server ====== 2025-03-25 22:52:02,204 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:02,211 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d 2025-03-25 22:52:02,228 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:52:02,305 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9 2025-03-25 22:52:02,316 - DEBUG - ==>Verifying data for policy with id: 0a66e0f0-dc30-4444-a995-58ad5119c10e, fqn: ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678'] 2025-03-25 22:52:02,316 - INFO - VN ctest-vn-59013523 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 22:52:02,316 - DEBUG - Verifying the vn in opserver 2025-03-25 22:52:02,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523 virtual network link through opserver 10.0.0.42 2025-03-25 22:52:02,316 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-25 22:52:02,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523?flat'} 2025-03-25 22:52:02,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523 is found in opserver 2025-03-25 22:52:02,337 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 22:52:02,342 - DEBUG - VRF ids for VN ctest-vn-59013523: {} 2025-03-25 22:52:02,404 - DEBUG - Services list from nova: [, , ] 2025-03-25 22:52:03,424 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2953-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2953-1) 2025-03-25 22:52:04,664 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2953-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2953-1) 2025-03-25 22:52:04,664 - INFO - Waiting for VM ctest-TestBasicPolicy-08282249-52491357 to be up.. 2025-03-25 22:52:04,756 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-25 22:52:09,838 - DEBUG - VM is in ACTIVE state now 2025-03-25 22:52:09,838 - INFO - VM name : ctest-TestBasicPolicy-08282249-52491357 2025-03-25 22:52:09,915 - DEBUG - VM ctest-TestBasicPolicy-08282249-52491357 ID is 7d75a0dd-42e8-41dd-a105-6674f4774d0b 2025-03-25 22:52:09,933 - DEBUG - VM ctest-TestBasicPolicy-08282249-52491357 launched on Node cn-jenkins-deploy-platform-ansible-os-2953-1 2025-03-25 22:52:10,018 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/7d75a0dd-42e8-41dd-a105-6674f4774d0b 2025-03-25 22:52:10,028 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/89f1733b-ae1c-4da2-9b32-2a573bc01fdd 2025-03-25 22:52:13,304 - 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 1031ms') 2025-03-25 22:52:13,305 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08282249-52491357 failed! 2025-03-25 22:52:13,363 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477 is 187.73.140.129 and allocation pool is NOT set 2025-03-25 22:52:15,423 - 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=2.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.608 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.608/1.710/2.812/1.102 ms') 2025-03-25 22:52:15,423 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08282249-52491357 passed 2025-03-25 22:52:15,575 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 22:52:15,576 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08282249-52491357, IP 187.73.140.131, Port 22 2025-03-25 22:52:15,735 - DEBUG - VM ctest-TestBasicPolicy-08282249-52491357 is ready for SSH connections 2025-03-25 22:52:15,735 - INFO - Waiting for VM ctest-TestBasicPolicy-08282249-81268028 to be up.. 2025-03-25 22:52:15,817 - DEBUG - VM is in ACTIVE state now 2025-03-25 22:52:15,818 - INFO - VM name : ctest-TestBasicPolicy-08282249-81268028 2025-03-25 22:52:15,897 - DEBUG - VM ctest-TestBasicPolicy-08282249-81268028 ID is c4da891b-cddd-4a1e-b7ba-5036964ca5d1 2025-03-25 22:52:15,897 - DEBUG - VM ctest-TestBasicPolicy-08282249-81268028 launched on Node cn-jenkins-deploy-platform-ansible-os-2953-1 2025-03-25 22:52:15,974 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/c4da891b-cddd-4a1e-b7ba-5036964ca5d1 2025-03-25 22:52:15,984 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/7f0f4b8e-ecc3-4a0c-a6a8-21c3df719146 2025-03-25 22:52:17,221 - 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.31 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.620 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.620/1.965/3.310/1.345 ms') 2025-03-25 22:52:17,221 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08282249-81268028 passed 2025-03-25 22:52:17,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 22:52:17,375 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08282249-81268028, IP 25.101.82.3, Port 22 2025-03-25 22:52:17,531 - DEBUG - VM ctest-TestBasicPolicy-08282249-81268028 is ready for SSH connections 2025-03-25 22:52:17,531 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 22:52:17,531 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.101.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-25 22:52:17,531 - DEBUG - ping -s 56 -c 3 -W 1 25.101.82.3 2025-03-25 22:52:21,544 - DEBUG - PING 25.101.82.3 (25.101.82.3): 56 data bytes 64 bytes from 25.101.82.3: seq=0 ttl=63 time=4.130 ms 64 bytes from 25.101.82.3: seq=1 ttl=63 time=0.979 ms 64 bytes from 25.101.82.3: seq=2 ttl=63 time=1.084 ms --- 25.101.82.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.979/2.064/4.130 ms 2025-03-25 22:52:21,545 - INFO - Ping to IP 25.101.82.3 from VM ctest-TestBasicPolicy-08282249-52491357 passed 2025-03-25 22:52:21,751 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0a66e0f0-dc30-4444-a995-58ad5119c10e", "href": "http://10.0.0.42:8082/network-policy/0a66e0f0-dc30-4444-a995-58ad5119c10e"}} 2025-03-25 22:52:21,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 22:52:21,751 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.101.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-25 22:52:21,751 - DEBUG - ping -s 56 -c 3 -W 1 25.101.82.3 2025-03-25 22:52:25,012 - DEBUG - PING 25.101.82.3 (25.101.82.3): 56 data bytes 64 bytes from 25.101.82.3: seq=0 ttl=63 time=1.808 ms --- 25.101.82.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.808/1.808/1.808 ms 2025-03-25 22:52:25,012 - WARNING - Ping to IP 25.101.82.3 from VM ctest-TestBasicPolicy-08282249-52491357 failed 2025-03-25 22:52:25,013 - INFO - Deleting VM ctest-TestBasicPolicy-08282249-81268028 2025-03-25 22:52:25,080 - INFO - Deleting VM ctest-TestBasicPolicy-08282249-52491357 2025-03-25 22:52:25,524 - INFO - Deleted policy ctest-policy-allow-all-04825678 2025-03-25 22:52:25,524 - INFO - Deleting VN ctest-vn-59013523 2025-03-25 22:52:25,573 - DEBUG - VN a8b660e7-d083-4755-9536-1e6bc54b53c9 still in use: Unable to complete operation on network a8b660e7-d083-4755-9536-1e6bc54b53c9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9ac4ceae-1c82-4dea-93a3-eab5f8be3a4f'] 2025-03-25 22:52:25,574 - WARNING - Deleting VN ctest-vn-59013523 failed..Will retry 2025-03-25 22:52:27,679 - DEBUG - Response for deleting network () 2025-03-25 22:52:27,680 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf 2025-03-25 22:52:27,686 - DEBUG - Response Code: 404 2025-03-25 22:52:27,687 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:27,692 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d 2025-03-25 22:52:27,745 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:52:27,819 - INFO - Validated that VN ctest-vn-59013523 is not found in API Server 2025-03-25 22:52:27,830 - DEBUG - VN ctest-vn-59013523 is not present in Agent 10.0.0.42 2025-03-25 22:52:27,830 - INFO - Validated that VN ctest-vn-59013523 is not in any agent 2025-03-25 22:52:27,845 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59013523 info 2025-03-25 22:52:27,845 - INFO - Deleting VN ctest-vn-76124477 2025-03-25 22:52:27,950 - DEBUG - Response for deleting network () 2025-03-25 22:52:27,950 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f 2025-03-25 22:52:27,956 - DEBUG - Response Code: 404 2025-03-25 22:52:27,957 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-25 22:52:27,962 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d 2025-03-25 22:52:28,017 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692 2025-03-25 22:52:28,091 - INFO - Validated that VN ctest-vn-76124477 is not found in API Server 2025-03-25 22:52:28,102 - DEBUG - VN ctest-vn-76124477 is not present in Agent 10.0.0.42 2025-03-25 22:52:28,102 - INFO - Validated that VN ctest-vn-76124477 is not in any agent 2025-03-25 22:52:28,118 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76124477 info 2025-03-25 22:52:28,374 - DEBUG - No XMPP flaps were noticed during the test
2025-03-25 22:52:28,374 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-03-25 22:52:28,374 - INFO - -------------------------------------------------------------------------------- 2025-03-25 22:52:29,068 - INFO - Deleted project: ctest-TestBasicPolicy-08282249, ID : de9da758-6052-4c26-b8a3-3ee72e067692