2025-02-03 02:30:01,568 - INFO - Domain Default found not creating 2025-02-03 02:30:01,775 - INFO - Project ctest-TestBasicPolicy-61085092 not found, creating it 2025-02-03 02:30:02,299 - INFO - Created Project:ctest-TestBasicPolicy-61085092, ID : 97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:04,044 - INFO - ================================================================================ 2025-02-03 02:30:04,044 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-03 02:30:04,044 - 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-02-03 02:30:04,302 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.30': '0'}} with 2025-02-03 02:30:04,303 - INFO - Initial checks done. Running the testcase now 2025-02-03 02:30:04,303 - INFO - 2025-02-03 02:30:04,960 - DEBUG - Response for create_network : {'network': {'id': 'd252c499-064b-4512-b0cb-7b208120834a', 'name': 'ctest-vn-70034718', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-70034718'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 02:30:05,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '34595f36-fafc-41e8-a8d9-44b3c9be2f27', 'name': '', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'network_id': 'd252c499-064b-4512-b0cb-7b208120834a', 'ip_version': 4, 'cidr': '207.238.55.128/26', 'allocation_pools': [{'start': '207.238.55.130', 'end': '207.238.55.190'}], 'gateway_ip': '207.238.55.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.238.55.130', 'tags': [], 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d'}} 2025-02-03 02:30:05,220 - INFO - Created VN ctest-vn-70034718 2025-02-03 02:30:05,275 - DEBUG - VN ctest-vn-70034718 UUID is d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:05,604 - DEBUG - Response for create_network : {'network': {'id': 'b5b0f8a9-769d-4a69-8969-84e90470a609', 'name': 'ctest-vn-25392636', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-25392636'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 02:30:05,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd849f6c3-6631-4871-bc55-6feeb52f1f5f', 'name': '', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'network_id': 'b5b0f8a9-769d-4a69-8969-84e90470a609', 'ip_version': 4, 'cidr': '68.192.63.0/26', 'allocation_pools': [{'start': '68.192.63.2', 'end': '68.192.63.62'}], 'gateway_ip': '68.192.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.192.63.2', 'tags': [], 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d'}} 2025-02-03 02:30:05,862 - INFO - Created VN ctest-vn-25392636 2025-02-03 02:30:05,915 - DEBUG - VN ctest-vn-25392636 UUID is b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:06,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718, 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-61085092:ctest-vn-25392636, 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-02-03 02:30:06,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd252c499-064b-4512-b0cb-7b208120834a', 'name': 'ctest-vn-70034718', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34595f36-fafc-41e8-a8d9-44b3c9be2f27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-70034718'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901']], 'subnet_ipam': [{'subnet_cidr': '207.238.55.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 02:30:06,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5b0f8a9-769d-4a69-8969-84e90470a609', 'name': 'ctest-vn-25392636', 'tenant_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'project_id': '97e2ac871bd549d0b54a89e5ed0f829d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d849f6c3-6631-4871-bc55-6feeb52f1f5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-vn-25392636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901']], 'subnet_ipam': [{'subnet_cidr': '68.192.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 02:30:06,775 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:07,129 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:07,161 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1 2025-02-03 02:30:07,178 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:07,250 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:07,262 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:07,272 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692 2025-02-03 02:30:07,280 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692 2025-02-03 02:30:07,288 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/1d0a4d0f-8c9c-43b1-9cc7-6a1951f2c156 2025-02-03 02:30:07,295 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 02:30:07,296 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:07,305 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692 2025-02-03 02:30:07,319 - INFO - Verified VN network id 7 for VN d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:07,319 - INFO - Verifications in API Server for VN ctest-vn-70034718 passed 2025-02-03 02:30:07,319 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:07,329 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692 2025-02-03 02:30:07,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692 2025-02-03 02:30:07,347 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/1d0a4d0f-8c9c-43b1-9cc7-6a1951f2c156 2025-02-03 02:30:07,360 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61085092', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15155391857569776914', 'uuid-lslong': '12739411350483141450'}, 'enable': 'true', 'created': '2025-02-03T02:30:04', 'last-modified': '2025-02-03T02:30:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007839'} 2025-02-03 02:30:07,368 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 02:30:07,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70034718 passed 2025-02-03 02:30:07,368 - DEBUG - ====Verifying policy data for ctest-vn-70034718 in API_Server ====== 2025-02-03 02:30:07,368 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:07,375 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1 2025-02-03 02:30:07,389 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:07,463 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d252c499-064b-4512-b0cb-7b208120834a 2025-02-03 02:30:07,473 - DEBUG - ==>Verifying data for policy with id: c3e9c2da-0327-4871-af8f-d0cec016aeac, fqn: ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901'] 2025-02-03 02:30:07,473 - INFO - VN ctest-vn-70034718 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 02:30:07,473 - DEBUG - Verifying the vn in opserver 2025-02-03 02:30:07,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718 virtual network link through opserver 10.0.0.24 2025-02-03 02:30:07,473 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-03 02:30:07,819 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-03 02:30:07,885 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718?flat'} 2025-02-03 02:30:07,885 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718 is found in opserver 2025-02-03 02:30:07,899 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 02:30:07,905 - DEBUG - VRF ids for VN ctest-vn-70034718: {} 2025-02-03 02:30:07,905 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:07,913 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1 2025-02-03 02:30:07,927 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:08,006 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:08,019 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:08,030 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500 2025-02-03 02:30:08,039 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500 2025-02-03 02:30:08,048 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8eaf8eac-8f99-460a-a6aa-2fed4ac2429d 2025-02-03 02:30:08,057 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-03 02:30:08,057 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:08,068 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500 2025-02-03 02:30:08,084 - INFO - Verified VN network id 8 for VN b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:08,084 - INFO - Verifications in API Server for VN ctest-vn-25392636 passed 2025-02-03 02:30:08,084 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:08,095 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500 2025-02-03 02:30:08,103 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500 2025-02-03 02:30:08,112 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8eaf8eac-8f99-460a-a6aa-2fed4ac2429d 2025-02-03 02:30:08,127 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61085092', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13092237523489213033', 'uuid-lslong': '9901591392087483913'}, 'enable': 'true', 'created': '2025-02-03T02:30:05', 'last-modified': '2025-02-03T02:30:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528736'} 2025-02-03 02:30:08,135 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-03 02:30:08,135 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25392636 passed 2025-02-03 02:30:08,135 - DEBUG - ====Verifying policy data for ctest-vn-25392636 in API_Server ====== 2025-02-03 02:30:08,135 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:08,142 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1 2025-02-03 02:30:08,157 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:08,231 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b5b0f8a9-769d-4a69-8969-84e90470a609 2025-02-03 02:30:08,242 - DEBUG - ==>Verifying data for policy with id: c3e9c2da-0327-4871-af8f-d0cec016aeac, fqn: ['default-domain', 'ctest-TestBasicPolicy-61085092', 'ctest-policy-allow-all-11552901'] 2025-02-03 02:30:08,243 - INFO - VN ctest-vn-25392636 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 02:30:08,243 - DEBUG - Verifying the vn in opserver 2025-02-03 02:30:08,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636 virtual network link through opserver 10.0.0.24 2025-02-03 02:30:08,243 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-03 02:30:08,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636?flat'} 2025-02-03 02:30:08,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-25392636 is found in opserver 2025-02-03 02:30:08,272 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 02:30:08,280 - DEBUG - VRF ids for VN ctest-vn-25392636: {} 2025-02-03 02:30:08,351 - DEBUG - Services list from nova: [, , ] 2025-02-03 02:30:09,585 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2673-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2673-1) 2025-02-03 02:30:11,062 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2673-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2673-1) 2025-02-03 02:30:11,062 - INFO - Waiting for VM ctest-TestBasicPolicy-61085092-46395891 to be up.. 2025-02-03 02:30:11,166 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-03 02:30:16,275 - DEBUG - VM is in ACTIVE state now 2025-02-03 02:30:16,275 - INFO - VM name : ctest-TestBasicPolicy-61085092-46395891 2025-02-03 02:30:16,381 - DEBUG - VM ctest-TestBasicPolicy-61085092-46395891 ID is d57c93be-be46-403c-81a5-5f2e093c848e 2025-02-03 02:30:16,409 - DEBUG - VM ctest-TestBasicPolicy-61085092-46395891 launched on Node cn-jenkins-deploy-platform-ansible-os-2673-1 2025-02-03 02:30:16,522 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/d57c93be-be46-403c-81a5-5f2e093c848e 2025-02-03 02:30:16,535 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/cebbaff6-5b36-4e5c-9d50-cb1e13fe6b6f 2025-02-03 02:30:19,814 - 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 1021ms') 2025-02-03 02:30:19,815 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61085092-46395891 failed! 2025-02-03 02:30:19,871 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61085092:ctest-vn-70034718 is 207.238.55.129 and allocation pool is NOT set 2025-02-03 02:30:23,937 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.94 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1005ms\r\nrtt min/avg/max/mdev = 3.935/3.935/3.935/0.000 ms') 2025-02-03 02:30:23,938 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61085092-46395891 passed 2025-02-03 02:30:24,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:30:24,091 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61085092-46395891, IP 207.238.55.131, Port 22 2025-02-03 02:30:24,158 - 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-02-03 02:30:24,256 - DEBUG - VM ctest-TestBasicPolicy-61085092-46395891 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-03 02:30:29,256 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:30:29,257 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61085092-46395891, IP 207.238.55.131, Port 22 2025-02-03 02:30:29,422 - DEBUG - VM ctest-TestBasicPolicy-61085092-46395891 is ready for SSH connections 2025-02-03 02:30:29,423 - INFO - Waiting for VM ctest-TestBasicPolicy-61085092-62457897 to be up.. 2025-02-03 02:30:29,523 - DEBUG - VM is in ACTIVE state now 2025-02-03 02:30:29,524 - INFO - VM name : ctest-TestBasicPolicy-61085092-62457897 2025-02-03 02:30:29,635 - DEBUG - VM ctest-TestBasicPolicy-61085092-62457897 ID is d7375dac-7400-440d-a86f-038a46ab3e7d 2025-02-03 02:30:29,635 - DEBUG - VM ctest-TestBasicPolicy-61085092-62457897 launched on Node cn-jenkins-deploy-platform-ansible-os-2673-1 2025-02-03 02:30:29,736 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/d7375dac-7400-440d-a86f-038a46ab3e7d 2025-02-03 02:30:29,747 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/6b07ef39-3b90-4c5a-8787-5e60ea98961b 2025-02-03 02:30:30,997 - 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.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.456 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.456/1.970/3.484/1.514 ms') 2025-02-03 02:30:30,997 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61085092-62457897 passed 2025-02-03 02:30:31,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:30:31,151 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61085092-62457897, IP 68.192.63.3, Port 22 2025-02-03 02:30:31,321 - DEBUG - VM ctest-TestBasicPolicy-61085092-62457897 is ready for SSH connections 2025-02-03 02:30:31,321 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:30:31,322 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.192.63.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-03 02:30:31,322 - DEBUG - ping -s 56 -c 3 -W 1 68.192.63.3 2025-02-03 02:30:35,495 - DEBUG - PING 68.192.63.3 (68.192.63.3): 56 data bytes 64 bytes from 68.192.63.3: seq=0 ttl=63 time=4.284 ms 64 bytes from 68.192.63.3: seq=1 ttl=63 time=1.243 ms 64 bytes from 68.192.63.3: seq=2 ttl=63 time=0.957 ms --- 68.192.63.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.957/2.161/4.284 ms 2025-02-03 02:30:35,495 - INFO - Ping to IP 68.192.63.3 from VM ctest-TestBasicPolicy-61085092-46395891 passed 2025-02-03 02:30:35,683 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c3e9c2da-0327-4871-af8f-d0cec016aeac", "href": "http://10.0.0.24:8082/network-policy/c3e9c2da-0327-4871-af8f-d0cec016aeac"}} 2025-02-03 02:30:35,683 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:30:35,683 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.192.63.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-03 02:30:35,683 - DEBUG - ping -s 56 -c 3 -W 1 68.192.63.3 2025-02-03 02:30:38,930 - DEBUG - PING 68.192.63.3 (68.192.63.3): 56 data bytes --- 68.192.63.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-02-03 02:30:38,931 - WARNING - Ping to IP 68.192.63.3 from VM ctest-TestBasicPolicy-61085092-46395891 failed 2025-02-03 02:30:38,931 - INFO - Deleting VM ctest-TestBasicPolicy-61085092-62457897 2025-02-03 02:30:39,015 - INFO - Deleting VM ctest-TestBasicPolicy-61085092-46395891 2025-02-03 02:30:39,475 - INFO - Deleted policy ctest-policy-allow-all-11552901 2025-02-03 02:30:39,475 - INFO - Deleting VN ctest-vn-25392636 2025-02-03 02:30:39,527 - DEBUG - VN b5b0f8a9-769d-4a69-8969-84e90470a609 still in use: Unable to complete operation on network b5b0f8a9-769d-4a69-8969-84e90470a609. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a6aa1216-5831-4f59-a52a-6e8fdc403439'] 2025-02-03 02:30:39,527 - WARNING - Deleting VN ctest-vn-25392636 failed..Will retry 2025-02-03 02:30:41,642 - DEBUG - Response for deleting network () 2025-02-03 02:30:41,642 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c468a241-eedf-4dad-8a78-572603e2c500 2025-02-03 02:30:41,653 - DEBUG - Response Code: 404 2025-02-03 02:30:41,653 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:41,659 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1 2025-02-03 02:30:41,718 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:41,796 - INFO - Validated that VN ctest-vn-25392636 is not found in API Server 2025-02-03 02:30:41,809 - DEBUG - VN ctest-vn-25392636 is not present in Agent 10.0.0.24 2025-02-03 02:30:41,809 - INFO - Validated that VN ctest-vn-25392636 is not in any agent 2025-02-03 02:30:41,831 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25392636 info 2025-02-03 02:30:41,831 - INFO - Deleting VN ctest-vn-70034718 2025-02-03 02:30:41,937 - DEBUG - Response for deleting network () 2025-02-03 02:30:41,937 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0803f98c-ca2e-4ec0-abbf-b73191bdd692 2025-02-03 02:30:41,944 - DEBUG - Response Code: 404 2025-02-03 02:30:41,944 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-03 02:30:41,952 - DEBUG - Requesting: http://10.0.0.24:8082/domain/fe7b4303-0615-4105-9f87-712246d742e1 2025-02-03 02:30:42,009 - DEBUG - Requesting: http://10.0.0.24:8082/project/97e2ac87-1bd5-49d0-b54a-89e5ed0f829d 2025-02-03 02:30:42,089 - INFO - Validated that VN ctest-vn-70034718 is not found in API Server 2025-02-03 02:30:42,103 - DEBUG - VN ctest-vn-70034718 is not present in Agent 10.0.0.24 2025-02-03 02:30:42,103 - INFO - Validated that VN ctest-vn-70034718 is not in any agent 2025-02-03 02:30:42,125 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70034718 info 2025-02-03 02:30:42,397 - DEBUG - No XMPP flaps were noticed during the test
2025-02-03 02:30:42,397 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-02-03 02:30:42,397 - INFO - -------------------------------------------------------------------------------- 2025-02-03 02:30:43,140 - INFO - Deleted project: ctest-TestBasicPolicy-61085092, ID : 97e2ac87-1bd5-49d0-b54a-89e5ed0f829d