2025-09-16 09:56:08,539 - INFO - Domain Default found not creating 2025-09-16 09:56:08,735 - INFO - Project ctest-TestBasicPolicy-96170227 not found, creating it 2025-09-16 09:56:09,232 - INFO - Created Project:ctest-TestBasicPolicy-96170227, ID : a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:10,723 - INFO - ================================================================================ 2025-09-16 09:56:10,723 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-16 09:56:10,723 - 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-09-16 09:56:10,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-16 09:56:10,994 - INFO - Initial checks done. Running the testcase now 2025-09-16 09:56:10,994 - INFO - 2025-09-16 09:56:11,581 - DEBUG - Response for create_network : {'network': {'id': '9385772f-972d-488e-a5f4-6d775a393d70', 'name': 'ctest-vn-05351957', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-05351957'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 09:56:11,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '727b8bd5-cd15-4086-b35d-5a88faf6d959', 'name': '', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'network_id': '9385772f-972d-488e-a5f4-6d775a393d70', 'ip_version': 4, 'cidr': '190.33.85.128/26', 'allocation_pools': [{'start': '190.33.85.130', 'end': '190.33.85.190'}], 'gateway_ip': '190.33.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.33.85.130', 'tags': [], 'project_id': 'a16a9884cba641fbbd674d20c256a618'}} 2025-09-16 09:56:11,763 - INFO - Created VN ctest-vn-05351957 2025-09-16 09:56:11,818 - DEBUG - VN ctest-vn-05351957 UUID is 9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:12,157 - DEBUG - Response for create_network : {'network': {'id': 'b2c4f3a9-cb6b-4543-8153-dd65196a5eb0', 'name': 'ctest-vn-11881682', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-11881682'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 09:56:12,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '04836241-63b6-428c-aade-5c4530552dc4', 'name': '', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'network_id': 'b2c4f3a9-cb6b-4543-8153-dd65196a5eb0', 'ip_version': 4, 'cidr': '23.253.208.192/26', 'allocation_pools': [{'start': '23.253.208.194', 'end': '23.253.208.254'}], 'gateway_ip': '23.253.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.253.208.194', 'tags': [], 'project_id': 'a16a9884cba641fbbd674d20c256a618'}} 2025-09-16 09:56:12,363 - INFO - Created VN ctest-vn-11881682 2025-09-16 09:56:12,417 - DEBUG - VN ctest-vn-11881682 UUID is b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:12,608 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957, 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-96170227:ctest-vn-11881682, 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-09-16 09:56:12,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9385772f-972d-488e-a5f4-6d775a393d70', 'name': 'ctest-vn-05351957', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['727b8bd5-cd15-4086-b35d-5a88faf6d959'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-05351957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523']], 'subnet_ipam': [{'subnet_cidr': '190.33.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 09:56:13,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2c4f3a9-cb6b-4543-8153-dd65196a5eb0', 'name': 'ctest-vn-11881682', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04836241-63b6-428c-aade-5c4530552dc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-11881682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523']], 'subnet_ipam': [{'subnet_cidr': '23.253.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 09:56:13,301 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:13,604 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:13,635 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25 2025-09-16 09:56:13,648 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:13,724 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:13,737 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:13,746 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161 2025-09-16 09:56:13,753 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161 2025-09-16 09:56:13,761 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c6c21712-69cf-45f8-9079-dfed0846bef2 2025-09-16 09:56:13,768 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 09:56:13,768 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:13,780 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161 2025-09-16 09:56:13,797 - INFO - Verified VN network id 11 for VN 9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:13,797 - INFO - Verifications in API Server for VN ctest-vn-05351957 passed 2025-09-16 09:56:13,797 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:13,807 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161 2025-09-16 09:56:13,814 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161 2025-09-16 09:56:13,821 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c6c21712-69cf-45f8-9079-dfed0846bef2 2025-09-16 09:56:13,834 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96170227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10630033541761419406', 'uuid-lslong': '11958303269957746032'}, 'enable': 'true', 'created': '2025-09-16T09:56:11', 'last-modified': '2025-09-16T09:56:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952358'} 2025-09-16 09:56:13,840 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 09:56:13,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05351957 passed 2025-09-16 09:56:13,840 - DEBUG - ====Verifying policy data for ctest-vn-05351957 in API_Server ====== 2025-09-16 09:56:13,840 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:13,846 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25 2025-09-16 09:56:13,864 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:13,941 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70 2025-09-16 09:56:13,950 - DEBUG - ==>Verifying data for policy with id: 79c056a7-d9d5-45c4-ad4c-148a43fc6bc7, fqn: ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523'] 2025-09-16 09:56:13,950 - INFO - VN ctest-vn-05351957 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 09:56:13,951 - DEBUG - Verifying the vn in opserver 2025-09-16 09:56:13,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957 virtual network link through opserver 10.0.0.22 2025-09-16 09:56:13,951 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-16 09:56:14,256 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-16 09:56:14,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957?flat'} 2025-09-16 09:56:14,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957 is found in opserver 2025-09-16 09:56:14,330 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 09:56:14,335 - DEBUG - VRF ids for VN ctest-vn-05351957: {} 2025-09-16 09:56:14,335 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:14,341 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25 2025-09-16 09:56:14,352 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:14,427 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:14,439 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:14,448 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22 2025-09-16 09:56:14,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22 2025-09-16 09:56:14,461 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e35934c4-1187-4398-9cec-8986098625c2 2025-09-16 09:56:14,467 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-16 09:56:14,467 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:14,475 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22 2025-09-16 09:56:14,489 - INFO - Verified VN network id 12 for VN b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:14,489 - INFO - Verifications in API Server for VN ctest-vn-11881682 passed 2025-09-16 09:56:14,489 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:14,497 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22 2025-09-16 09:56:14,504 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22 2025-09-16 09:56:14,513 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e35934c4-1187-4398-9cec-8986098625c2 2025-09-16 09:56:14,527 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96170227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12881688744774288707', 'uuid-lslong': '9319035480247525040'}, 'enable': 'true', 'created': '2025-09-16T09:56:12', 'last-modified': '2025-09-16T09:56:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411561'} 2025-09-16 09:56:14,534 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-16 09:56:14,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11881682 passed 2025-09-16 09:56:14,534 - DEBUG - ====Verifying policy data for ctest-vn-11881682 in API_Server ====== 2025-09-16 09:56:14,534 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:14,541 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25 2025-09-16 09:56:14,554 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:14,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 2025-09-16 09:56:14,643 - DEBUG - ==>Verifying data for policy with id: 79c056a7-d9d5-45c4-ad4c-148a43fc6bc7, fqn: ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523'] 2025-09-16 09:56:14,643 - INFO - VN ctest-vn-11881682 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 09:56:14,643 - DEBUG - Verifying the vn in opserver 2025-09-16 09:56:14,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682 virtual network link through opserver 10.0.0.22 2025-09-16 09:56:14,643 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-16 09:56:14,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682?flat'} 2025-09-16 09:56:14,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682 is found in opserver 2025-09-16 09:56:14,666 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 09:56:14,671 - DEBUG - VRF ids for VN ctest-vn-11881682: {} 2025-09-16 09:56:14,733 - DEBUG - Services list from nova: [, , ] 2025-09-16 09:56:15,792 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4120-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4120-1) 2025-09-16 09:56:17,008 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4120-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4120-1) 2025-09-16 09:56:17,008 - INFO - Waiting for VM ctest-TestBasicPolicy-96170227-70014774 to be up.. 2025-09-16 09:56:17,097 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-16 09:56:22,203 - DEBUG - VM is in ACTIVE state now 2025-09-16 09:56:22,203 - INFO - VM name : ctest-TestBasicPolicy-96170227-70014774 2025-09-16 09:56:22,283 - DEBUG - VM ctest-TestBasicPolicy-96170227-70014774 ID is 5008f881-3d7a-41d0-9c57-b6c248ee236e 2025-09-16 09:56:22,310 - DEBUG - VM ctest-TestBasicPolicy-96170227-70014774 launched on Node cn-jenkins-deploy-platform-ansible-os-4120-1 2025-09-16 09:56:22,407 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/5008f881-3d7a-41d0-9c57-b6c248ee236e 2025-09-16 09:56:22,416 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/4f137069-cc7c-4968-a300-6fbaae305215 2025-09-16 09:56:25,661 - 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 1002ms') 2025-09-16 09:56:25,661 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96170227-70014774 failed! 2025-09-16 09:56:25,717 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957 is 190.33.85.129 and allocation pool is NOT set 2025-09-16 09:56:27,790 - 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=9.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.34 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 = 2.339/5.839/9.339/3.500 ms') 2025-09-16 09:56:27,790 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96170227-70014774 passed 2025-09-16 09:56:27,950 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 09:56:27,950 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96170227-70014774, IP 190.33.85.131, Port 22 2025-09-16 09:56:28,016 - 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-09-16 09:56:28,099 - DEBUG - VM ctest-TestBasicPolicy-96170227-70014774 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-16 09:56:33,099 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 09:56:33,099 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96170227-70014774, IP 190.33.85.131, Port 22 2025-09-16 09:56:33,268 - DEBUG - VM ctest-TestBasicPolicy-96170227-70014774 is ready for SSH connections 2025-09-16 09:56:33,268 - INFO - Waiting for VM ctest-TestBasicPolicy-96170227-34476599 to be up.. 2025-09-16 09:56:33,355 - DEBUG - VM is in ACTIVE state now 2025-09-16 09:56:33,355 - INFO - VM name : ctest-TestBasicPolicy-96170227-34476599 2025-09-16 09:56:33,440 - DEBUG - VM ctest-TestBasicPolicy-96170227-34476599 ID is cb5dfdd1-4ab3-4aaf-9812-7746dc2a843f 2025-09-16 09:56:33,440 - DEBUG - VM ctest-TestBasicPolicy-96170227-34476599 launched on Node cn-jenkins-deploy-platform-ansible-os-4120-1 2025-09-16 09:56:33,518 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/cb5dfdd1-4ab3-4aaf-9812-7746dc2a843f 2025-09-16 09:56:33,526 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/f32aa6f3-2454-4f46-9454-1ee3de860a92 2025-09-16 09:56:34,768 - 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.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.457 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.457/1.913/3.369/1.456 ms') 2025-09-16 09:56:34,768 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-96170227-34476599 passed 2025-09-16 09:56:34,926 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 09:56:34,926 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96170227-34476599, IP 23.253.208.195, Port 22 2025-09-16 09:56:35,092 - DEBUG - VM ctest-TestBasicPolicy-96170227-34476599 is ready for SSH connections 2025-09-16 09:56:35,092 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 09:56:35,092 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 23.253.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-16 09:56:35,092 - DEBUG - ping -s 56 -c 3 -W 1 23.253.208.195 2025-09-16 09:56:39,184 - DEBUG - PING 23.253.208.195 (23.253.208.195): 56 data bytes 64 bytes from 23.253.208.195: seq=0 ttl=63 time=3.620 ms 64 bytes from 23.253.208.195: seq=1 ttl=63 time=1.119 ms 64 bytes from 23.253.208.195: seq=2 ttl=63 time=0.881 ms --- 23.253.208.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/1.873/3.620 ms 2025-09-16 09:56:39,184 - INFO - Ping to IP 23.253.208.195 from VM ctest-TestBasicPolicy-96170227-70014774 passed 2025-09-16 09:56:39,373 - DEBUG - Policy Update Response {"network-policy": {"uuid": "79c056a7-d9d5-45c4-ad4c-148a43fc6bc7", "href": "http://10.0.0.22:8082/network-policy/79c056a7-d9d5-45c4-ad4c-148a43fc6bc7"}} 2025-09-16 09:56:39,374 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 09:56:39,374 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 23.253.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-16 09:56:39,374 - DEBUG - ping -s 56 -c 3 -W 1 23.253.208.195 2025-09-16 09:56:42,582 - DEBUG - PING 23.253.208.195 (23.253.208.195): 56 data bytes --- 23.253.208.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-16 09:56:42,582 - WARNING - Ping to IP 23.253.208.195 from VM ctest-TestBasicPolicy-96170227-70014774 failed 2025-09-16 09:56:42,582 - INFO - Deleting VM ctest-TestBasicPolicy-96170227-34476599 2025-09-16 09:56:42,665 - INFO - Deleting VM ctest-TestBasicPolicy-96170227-70014774 2025-09-16 09:56:43,070 - INFO - Deleted policy ctest-policy-allow-all-17440523 2025-09-16 09:56:43,070 - INFO - Deleting VN ctest-vn-11881682 2025-09-16 09:56:43,107 - DEBUG - VN b2c4f3a9-cb6b-4543-8153-dd65196a5eb0 still in use: Unable to complete operation on network b2c4f3a9-cb6b-4543-8153-dd65196a5eb0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6ff785b8-dd87-4062-be01-1c6ad52f01e0'] 2025-09-16 09:56:43,107 - WARNING - Deleting VN ctest-vn-11881682 failed..Will retry 2025-09-16 09:56:45,225 - DEBUG - Response for deleting network () 2025-09-16 09:56:45,225 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22 2025-09-16 09:56:45,232 - DEBUG - Response Code: 404 2025-09-16 09:56:45,233 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:45,239 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25 2025-09-16 09:56:45,298 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:45,374 - INFO - Validated that VN ctest-vn-11881682 is not found in API Server 2025-09-16 09:56:45,385 - DEBUG - VN ctest-vn-11881682 is not present in Agent 10.0.0.22 2025-09-16 09:56:45,385 - INFO - Validated that VN ctest-vn-11881682 is not in any agent 2025-09-16 09:56:45,400 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11881682 info 2025-09-16 09:56:45,400 - INFO - Deleting VN ctest-vn-05351957 2025-09-16 09:56:45,522 - DEBUG - Response for deleting network () 2025-09-16 09:56:45,523 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161 2025-09-16 09:56:45,531 - DEBUG - Response Code: 404 2025-09-16 09:56:45,531 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-16 09:56:45,537 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25 2025-09-16 09:56:45,592 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618 2025-09-16 09:56:45,669 - INFO - Validated that VN ctest-vn-05351957 is not found in API Server 2025-09-16 09:56:45,679 - DEBUG - VN ctest-vn-05351957 is not present in Agent 10.0.0.22 2025-09-16 09:56:45,680 - INFO - Validated that VN ctest-vn-05351957 is not in any agent 2025-09-16 09:56:45,693 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05351957 info 2025-09-16 09:56:45,952 - DEBUG - No XMPP flaps were noticed during the test
2025-09-16 09:56:45,952 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-09-16 09:56:45,952 - INFO - -------------------------------------------------------------------------------- 2025-09-16 09:56:46,687 - INFO - Deleted project: ctest-TestBasicPolicy-96170227, ID : a16a9884-cba6-41fb-bd67-4d20c256a618