2025-10-17 17:44:11,762 - INFO - Domain Default found not creating 2025-10-17 17:44:12,083 - INFO - Project ctest-TestBasicPolicy-04293704 not found, creating it 2025-10-17 17:44:12,755 - INFO - Created Project:ctest-TestBasicPolicy-04293704, ID : b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:14,835 - INFO - ================================================================================ 2025-10-17 17:44:14,835 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-17 17:44:14,836 - 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-10-17 17:44:15,179 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-17 17:44:15,179 - INFO - Initial checks done. Running the testcase now 2025-10-17 17:44:15,180 - INFO - 2025-10-17 17:44:15,918 - DEBUG - Response for create_network : {'network': {'id': '98136fcb-0ef5-4fb8-81f4-a385e6c5a919', 'name': 'ctest-vn-49655193', 'tenant_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'project_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-vn-49655193'], 'port_security_enabled': True, 'description': ''}} 2025-10-17 17:44:16,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '4dbf1bf6-a13f-4895-a4ba-b9eb7adbbe2b', 'name': '', 'tenant_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'network_id': '98136fcb-0ef5-4fb8-81f4-a385e6c5a919', 'ip_version': 4, 'cidr': '97.80.103.128/26', 'allocation_pools': [{'start': '97.80.103.130', 'end': '97.80.103.190'}], 'gateway_ip': '97.80.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.80.103.130', 'tags': [], 'project_id': 'b7abf873b88b4f9a9d1620d94e3e0efa'}} 2025-10-17 17:44:16,202 - INFO - Created VN ctest-vn-49655193 2025-10-17 17:44:16,261 - DEBUG - VN ctest-vn-49655193 UUID is 98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:16,711 - DEBUG - Response for create_network : {'network': {'id': 'ec39aef4-36fe-44d9-b0ae-93cb254787aa', 'name': 'ctest-vn-95864437', 'tenant_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'project_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-vn-95864437'], 'port_security_enabled': True, 'description': ''}} 2025-10-17 17:44:16,891 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ce9165d-de11-4145-ae91-be2367bd97bd', 'name': '', 'tenant_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'network_id': 'ec39aef4-36fe-44d9-b0ae-93cb254787aa', 'ip_version': 4, 'cidr': '166.104.112.64/26', 'allocation_pools': [{'start': '166.104.112.66', 'end': '166.104.112.126'}], 'gateway_ip': '166.104.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.104.112.66', 'tags': [], 'project_id': 'b7abf873b88b4f9a9d1620d94e3e0efa'}} 2025-10-17 17:44:16,909 - INFO - Created VN ctest-vn-95864437 2025-10-17 17:44:16,960 - DEBUG - VN ctest-vn-95864437 UUID is ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:17,101 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193, 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-04293704:ctest-vn-95864437, 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-10-17 17:44:17,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98136fcb-0ef5-4fb8-81f4-a385e6c5a919', 'name': 'ctest-vn-49655193', 'tenant_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'project_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4dbf1bf6-a13f-4895-a4ba-b9eb7adbbe2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-vn-49655193'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-policy-allow-all-54534384']], 'subnet_ipam': [{'subnet_cidr': '97.80.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-17 17:44:17,810 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec39aef4-36fe-44d9-b0ae-93cb254787aa', 'name': 'ctest-vn-95864437', 'tenant_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'project_id': 'b7abf873b88b4f9a9d1620d94e3e0efa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ce9165d-de11-4145-ae91-be2367bd97bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-vn-95864437'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-policy-allow-all-54534384']], 'subnet_ipam': [{'subnet_cidr': '166.104.112.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-17 17:44:17,992 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:18,321 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:18,360 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:18,381 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:18,488 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:18,529 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:18,546 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/870d8b9d-bfc4-4688-a2ca-151641ea6eb9 2025-10-17 17:44:18,557 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/870d8b9d-bfc4-4688-a2ca-151641ea6eb9 2025-10-17 17:44:18,567 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/990edc6f-c7d1-492a-ba47-31539a678071 2025-10-17 17:44:18,575 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 17:44:18,575 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:18,584 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/870d8b9d-bfc4-4688-a2ca-151641ea6eb9 2025-10-17 17:44:18,606 - INFO - Verified VN network id 11 for VN 98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:18,607 - INFO - Verifications in API Server for VN ctest-vn-49655193 passed 2025-10-17 17:44:18,607 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:18,619 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/870d8b9d-bfc4-4688-a2ca-151641ea6eb9 2025-10-17 17:44:18,628 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/870d8b9d-bfc4-4688-a2ca-151641ea6eb9 2025-10-17 17:44:18,637 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/990edc6f-c7d1-492a-ba47-31539a678071 2025-10-17 17:44:18,654 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04293704', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10958225236242550712', 'uuid-lslong': '9364289320707795225'}, 'enable': 'true', 'created': '2025-10-17T17:44:15', 'last-modified': '2025-10-17T17:44:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.216155'} 2025-10-17 17:44:18,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 17:44:18,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49655193 passed 2025-10-17 17:44:18,669 - DEBUG - ====Verifying policy data for ctest-vn-49655193 in API_Server ====== 2025-10-17 17:44:18,669 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:18,676 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:18,691 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:18,799 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98136fcb-0ef5-4fb8-81f4-a385e6c5a919 2025-10-17 17:44:18,815 - DEBUG - ==>Verifying data for policy with id: 3fba3e2d-9494-4048-a7ff-420a57e5da99, fqn: ['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-policy-allow-all-54534384'] 2025-10-17 17:44:18,815 - INFO - VN ctest-vn-49655193 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 17:44:18,815 - DEBUG - Verifying the vn in opserver 2025-10-17 17:44:18,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193 virtual network link through opserver 10.0.0.33 2025-10-17 17:44:18,816 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-17 17:44:19,129 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-17 17:44:19,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193?flat'} 2025-10-17 17:44:19,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193 is found in opserver 2025-10-17 17:44:19,250 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 17:44:19,269 - DEBUG - VRF ids for VN ctest-vn-49655193: {} 2025-10-17 17:44:19,269 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:19,281 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:19,308 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:19,402 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:19,423 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:19,436 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a7d9e3fd-145b-4435-a621-b0258b77eaeb 2025-10-17 17:44:19,445 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a7d9e3fd-145b-4435-a621-b0258b77eaeb 2025-10-17 17:44:19,452 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/edcd464a-b09e-4fe5-9323-38aee80599ae 2025-10-17 17:44:19,461 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-17 17:44:19,461 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:19,473 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a7d9e3fd-145b-4435-a621-b0258b77eaeb 2025-10-17 17:44:19,488 - INFO - Verified VN network id 12 for VN ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:19,488 - INFO - Verifications in API Server for VN ctest-vn-95864437 passed 2025-10-17 17:44:19,488 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:19,498 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a7d9e3fd-145b-4435-a621-b0258b77eaeb 2025-10-17 17:44:19,506 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a7d9e3fd-145b-4435-a621-b0258b77eaeb 2025-10-17 17:44:19,514 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/edcd464a-b09e-4fe5-9323-38aee80599ae 2025-10-17 17:44:19,528 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-95864437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04293704', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17021828630541386969', 'uuid-lslong': '12731275697336059818'}, 'enable': 'true', 'created': '2025-10-17T17:44:16', 'last-modified': '2025-10-17T17:44:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.759721'} 2025-10-17 17:44:19,536 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-17 17:44:19,536 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95864437 passed 2025-10-17 17:44:19,536 - DEBUG - ====Verifying policy data for ctest-vn-95864437 in API_Server ====== 2025-10-17 17:44:19,536 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:19,544 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:19,558 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:19,652 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec39aef4-36fe-44d9-b0ae-93cb254787aa 2025-10-17 17:44:19,669 - DEBUG - ==>Verifying data for policy with id: 3fba3e2d-9494-4048-a7ff-420a57e5da99, fqn: ['default-domain', 'ctest-TestBasicPolicy-04293704', 'ctest-policy-allow-all-54534384'] 2025-10-17 17:44:19,669 - INFO - VN ctest-vn-95864437 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 17:44:19,669 - DEBUG - Verifying the vn in opserver 2025-10-17 17:44:19,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-95864437 virtual network link through opserver 10.0.0.33 2025-10-17 17:44:19,669 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-17 17:44:19,692 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-95864437', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-95864437?flat'} 2025-10-17 17:44:19,692 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-95864437 is found in opserver 2025-10-17 17:44:19,707 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 17:44:19,714 - DEBUG - VRF ids for VN ctest-vn-95864437: {} 2025-10-17 17:44:19,840 - DEBUG - Services list from nova: [, , ] 2025-10-17 17:44:21,375 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4356-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4356-1) 2025-10-17 17:44:22,881 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4356-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4356-1) 2025-10-17 17:44:22,882 - INFO - Waiting for VM ctest-TestBasicPolicy-04293704-22632792 to be up.. 2025-10-17 17:44:22,964 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-17 17:44:28,100 - DEBUG - VM is in ACTIVE state now 2025-10-17 17:44:28,100 - INFO - VM name : ctest-TestBasicPolicy-04293704-22632792 2025-10-17 17:44:28,218 - DEBUG - VM ctest-TestBasicPolicy-04293704-22632792 ID is a754924d-282c-46b9-9e4f-3c37b06c7bf6 2025-10-17 17:44:28,240 - DEBUG - VM ctest-TestBasicPolicy-04293704-22632792 launched on Node cn-jenkins-deploy-platform-ansible-os-4356-1 2025-10-17 17:44:28,372 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a754924d-282c-46b9-9e4f-3c37b06c7bf6 2025-10-17 17:44:28,385 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/4bbb1e28-d663-4632-9007-58b8beef3c40 2025-10-17 17:44:31,675 - 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 1017ms') 2025-10-17 17:44:31,675 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04293704-22632792 failed! 2025-10-17 17:44:31,752 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04293704:ctest-vn-49655193 is 97.80.103.129 and allocation pool is NOT set 2025-10-17 17:44:33,823 - 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=14.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.857 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.857/7.550/14.244/6.693 ms') 2025-10-17 17:44:33,824 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04293704-22632792 passed 2025-10-17 17:44:34,008 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 17:44:34,009 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04293704-22632792, IP 97.80.103.131, Port 22 2025-10-17 17:44:34,077 - 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-10-17 17:44:34,207 - DEBUG - VM ctest-TestBasicPolicy-04293704-22632792 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-17 17:44:39,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 17:44:39,208 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04293704-22632792, IP 97.80.103.131, Port 22 2025-10-17 17:44:39,414 - DEBUG - VM ctest-TestBasicPolicy-04293704-22632792 is ready for SSH connections 2025-10-17 17:44:39,414 - INFO - Waiting for VM ctest-TestBasicPolicy-04293704-34223413 to be up.. 2025-10-17 17:44:39,533 - DEBUG - VM is in ACTIVE state now 2025-10-17 17:44:39,533 - INFO - VM name : ctest-TestBasicPolicy-04293704-34223413 2025-10-17 17:44:39,641 - DEBUG - VM ctest-TestBasicPolicy-04293704-34223413 ID is 70efa7e2-54fe-495f-bbc9-cd34f011fc5c 2025-10-17 17:44:39,641 - DEBUG - VM ctest-TestBasicPolicy-04293704-34223413 launched on Node cn-jenkins-deploy-platform-ansible-os-4356-1 2025-10-17 17:44:39,756 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/70efa7e2-54fe-495f-bbc9-cd34f011fc5c 2025-10-17 17:44:39,766 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/b49ea6b2-345a-461e-ab31-fda18e1496da 2025-10-17 17:44:41,035 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 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.073/2.291/3.509/1.218 ms') 2025-10-17 17:44:41,036 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04293704-34223413 passed 2025-10-17 17:44:41,205 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 17:44:41,205 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04293704-34223413, IP 166.104.112.67, Port 22 2025-10-17 17:44:41,374 - DEBUG - VM ctest-TestBasicPolicy-04293704-34223413 is ready for SSH connections 2025-10-17 17:44:41,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 17:44:41,375 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.104.112.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-17 17:44:41,375 - DEBUG - ping -s 56 -c 3 -W 1 166.104.112.67 2025-10-17 17:44:45,851 - DEBUG - PING 166.104.112.67 (166.104.112.67): 56 data bytes 64 bytes from 166.104.112.67: seq=0 ttl=63 time=6.339 ms 64 bytes from 166.104.112.67: seq=1 ttl=63 time=1.869 ms 64 bytes from 166.104.112.67: seq=2 ttl=63 time=2.037 ms --- 166.104.112.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.869/3.415/6.339 ms 2025-10-17 17:44:45,851 - INFO - Ping to IP 166.104.112.67 from VM ctest-TestBasicPolicy-04293704-22632792 passed 2025-10-17 17:44:46,076 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3fba3e2d-9494-4048-a7ff-420a57e5da99", "href": "http://10.0.0.33:8082/network-policy/3fba3e2d-9494-4048-a7ff-420a57e5da99"}} 2025-10-17 17:44:46,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 17:44:46,076 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.104.112.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-17 17:44:46,077 - DEBUG - ping -s 56 -c 3 -W 1 166.104.112.67 2025-10-17 17:44:49,376 - DEBUG - PING 166.104.112.67 (166.104.112.67): 56 data bytes --- 166.104.112.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-17 17:44:49,376 - WARNING - Ping to IP 166.104.112.67 from VM ctest-TestBasicPolicy-04293704-22632792 failed 2025-10-17 17:44:49,377 - INFO - Deleting VM ctest-TestBasicPolicy-04293704-34223413 2025-10-17 17:44:49,505 - INFO - Deleting VM ctest-TestBasicPolicy-04293704-22632792 2025-10-17 17:44:50,094 - INFO - Deleted policy ctest-policy-allow-all-54534384 2025-10-17 17:44:50,094 - INFO - Deleting VN ctest-vn-95864437 2025-10-17 17:44:50,136 - DEBUG - VN ec39aef4-36fe-44d9-b0ae-93cb254787aa still in use: Unable to complete operation on network ec39aef4-36fe-44d9-b0ae-93cb254787aa. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cd2e1050-614e-4f1c-8714-355b713caa4c'] 2025-10-17 17:44:50,136 - WARNING - Deleting VN ctest-vn-95864437 failed..Will retry 2025-10-17 17:44:52,370 - DEBUG - Response for deleting network () 2025-10-17 17:44:52,370 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a7d9e3fd-145b-4435-a621-b0258b77eaeb 2025-10-17 17:44:52,383 - DEBUG - Response Code: 404 2025-10-17 17:44:52,383 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:52,393 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:52,414 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:52,526 - INFO - Validated that VN ctest-vn-95864437 is not found in API Server 2025-10-17 17:44:52,548 - DEBUG - VN ctest-vn-95864437 is not present in Agent 10.0.0.33 2025-10-17 17:44:52,548 - INFO - Validated that VN ctest-vn-95864437 is not in any agent 2025-10-17 17:44:52,575 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95864437 info 2025-10-17 17:44:52,575 - INFO - Deleting VN ctest-vn-49655193 2025-10-17 17:44:52,770 - DEBUG - Response for deleting network () 2025-10-17 17:44:52,770 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/870d8b9d-bfc4-4688-a2ca-151641ea6eb9 2025-10-17 17:44:52,775 - DEBUG - Response Code: 404 2025-10-17 17:44:52,775 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:52,781 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:52,836 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7abf873-b88b-4f9a-9d16-20d94e3e0efa 2025-10-17 17:44:52,948 - INFO - Validated that VN ctest-vn-49655193 is not found in API Server 2025-10-17 17:44:52,967 - DEBUG - VN ctest-vn-49655193 is not present in Agent 10.0.0.33 2025-10-17 17:44:52,967 - INFO - Validated that VN ctest-vn-49655193 is not in any agent 2025-10-17 17:44:52,997 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49655193 info 2025-10-17 17:44:53,333 - DEBUG - No XMPP flaps were noticed during the test
2025-10-17 17:44:53,333 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-10-17 17:44:53,334 - INFO - -------------------------------------------------------------------------------- 2025-10-17 17:44:54,139 - INFO - Deleted project: ctest-TestBasicPolicy-04293704, ID : b7abf873-b88b-4f9a-9d16-20d94e3e0efa