2025-04-09 08:12:43,152 - INFO - Domain Default found not creating 2025-04-09 08:12:43,290 - INFO - Project ctest-TestBasicPolicy-31545931 not found, creating it 2025-04-09 08:12:43,760 - INFO - Created Project:ctest-TestBasicPolicy-31545931, ID : 53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:12:45,199 - INFO - ================================================================================ 2025-04-09 08:12:45,199 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 08:12:45,199 - 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-04-09 08:12:45,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.7': '0'}} with 2025-04-09 08:12:45,454 - INFO - Initial checks done. Running the testcase now 2025-04-09 08:12:45,454 - INFO - 2025-04-09 08:12:45,984 - DEBUG - Response for create_network : {'network': {'id': '660bbab9-416b-42e3-afb7-1f590cc62862', 'name': 'ctest-vn-17399400', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-17399400'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 08:12:46,159 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de4c9256-c95d-471a-9d74-f81038b0e916', 'name': '', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'network_id': '660bbab9-416b-42e3-afb7-1f590cc62862', 'ip_version': 4, 'cidr': '33.118.236.0/26', 'allocation_pools': [{'start': '33.118.236.2', 'end': '33.118.236.62'}], 'gateway_ip': '33.118.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.118.236.2', 'tags': [], 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49'}} 2025-04-09 08:12:46,183 - INFO - Created VN ctest-vn-17399400 2025-04-09 08:12:46,238 - DEBUG - VN ctest-vn-17399400 UUID is 660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:46,538 - DEBUG - Response for create_network : {'network': {'id': 'db62e4d0-9a58-4d03-83dd-7c04d9742e73', 'name': 'ctest-vn-96214526', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-96214526'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 08:12:46,729 - DEBUG - Response for create_subnet : {'subnet': {'id': '213c4f89-806b-4ef5-91eb-5e9b3437ce4b', 'name': '', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'network_id': 'db62e4d0-9a58-4d03-83dd-7c04d9742e73', 'ip_version': 4, 'cidr': '220.112.13.192/26', 'allocation_pools': [{'start': '220.112.13.194', 'end': '220.112.13.254'}], 'gateway_ip': '220.112.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.112.13.194', 'tags': [], 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49'}} 2025-04-09 08:12:46,747 - INFO - Created VN ctest-vn-96214526 2025-04-09 08:12:46,798 - DEBUG - VN ctest-vn-96214526 UUID is db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:46,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400, 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-31545931:ctest-vn-96214526, 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-04-09 08:12:47,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '660bbab9-416b-42e3-afb7-1f590cc62862', 'name': 'ctest-vn-17399400', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de4c9256-c95d-471a-9d74-f81038b0e916'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-17399400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897']], 'subnet_ipam': [{'subnet_cidr': '33.118.236.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 08:12:47,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db62e4d0-9a58-4d03-83dd-7c04d9742e73', 'name': 'ctest-vn-96214526', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['213c4f89-806b-4ef5-91eb-5e9b3437ce4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-96214526'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897']], 'subnet_ipam': [{'subnet_cidr': '220.112.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 08:12:47,594 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:12:47,891 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:12:47,918 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35 2025-04-09 08:12:47,933 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:12:48,004 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:48,015 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:48,025 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7 2025-04-09 08:12:48,033 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7 2025-04-09 08:12:48,044 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/2c677d81-142d-4de3-96f5-444e95c4e309 2025-04-09 08:12:48,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 08:12:48,053 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:48,065 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7 2025-04-09 08:12:48,082 - INFO - Verified VN network id 9 for VN 660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:48,082 - INFO - Verifications in API Server for VN ctest-vn-17399400 passed 2025-04-09 08:12:48,083 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:48,093 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7 2025-04-09 08:12:48,101 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7 2025-04-09 08:12:48,109 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/2c677d81-142d-4de3-96f5-444e95c4e309 2025-04-09 08:12:48,122 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31545931', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7353176121441731299', 'uuid-lslong': '12661623344702302306'}, 'enable': 'true', 'created': '2025-04-09T08:12:45', 'last-modified': '2025-04-09T08:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938925'} 2025-04-09 08:12:48,132 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 08:12:48,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17399400 passed 2025-04-09 08:12:48,132 - DEBUG - ====Verifying policy data for ctest-vn-17399400 in API_Server ====== 2025-04-09 08:12:48,132 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:12:48,138 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35 2025-04-09 08:12:48,150 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:12:48,223 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862 2025-04-09 08:12:48,233 - DEBUG - ==>Verifying data for policy with id: 157453e7-f6e1-442b-ae71-f25ed17ffec2, fqn: ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897'] 2025-04-09 08:12:48,233 - INFO - VN ctest-vn-17399400 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 08:12:48,234 - DEBUG - Verifying the vn in opserver 2025-04-09 08:12:48,234 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400 virtual network link through opserver 10.0.0.42 2025-04-09 08:12:48,234 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-04-09 08:12:48,529 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-04-09 08:12:48,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400?flat'} 2025-04-09 08:12:48,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400 is found in opserver 2025-04-09 08:12:48,598 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 08:12:48,604 - DEBUG - VRF ids for VN ctest-vn-17399400: {} 2025-04-09 08:12:48,604 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:12:48,610 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35 2025-04-09 08:12:48,623 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:12:48,697 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:48,710 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:48,719 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5 2025-04-09 08:12:48,728 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5 2025-04-09 08:12:48,736 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7805c159-b5f2-4d96-870c-d5c668c9aca4 2025-04-09 08:12:48,744 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 08:12:48,744 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:48,756 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5 2025-04-09 08:12:48,772 - INFO - Verified VN network id 10 for VN db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:48,772 - INFO - Verifications in API Server for VN ctest-vn-96214526 passed 2025-04-09 08:12:48,772 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:48,783 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5 2025-04-09 08:12:48,791 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5 2025-04-09 08:12:48,799 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7805c159-b5f2-4d96-870c-d5c668c9aca4 2025-04-09 08:12:48,812 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31545931', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15808449226617670915', 'uuid-lslong': '9501887149091597939'}, 'enable': 'true', 'created': '2025-04-09T08:12:46', 'last-modified': '2025-04-09T08:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409104'} 2025-04-09 08:12:48,819 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 08:12:48,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96214526 passed 2025-04-09 08:12:48,819 - DEBUG - ====Verifying policy data for ctest-vn-96214526 in API_Server ====== 2025-04-09 08:12:48,819 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:12:48,826 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35 2025-04-09 08:12:48,839 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:12:48,912 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73 2025-04-09 08:12:48,922 - DEBUG - ==>Verifying data for policy with id: 157453e7-f6e1-442b-ae71-f25ed17ffec2, fqn: ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897'] 2025-04-09 08:12:48,922 - INFO - VN ctest-vn-96214526 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 08:12:48,922 - DEBUG - Verifying the vn in opserver 2025-04-09 08:12:48,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526 virtual network link through opserver 10.0.0.42 2025-04-09 08:12:48,922 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-04-09 08:12:48,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526?flat'} 2025-04-09 08:12:48,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526 is found in opserver 2025-04-09 08:12:48,945 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 08:12:48,952 - DEBUG - VRF ids for VN ctest-vn-96214526: {} 2025-04-09 08:12:49,014 - DEBUG - Services list from nova: [, , ] 2025-04-09 08:12:50,028 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3061-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3061-1) 2025-04-09 08:12:51,460 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3061-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3061-1) 2025-04-09 08:12:51,460 - INFO - Waiting for VM ctest-TestBasicPolicy-31545931-84996224 to be up.. 2025-04-09 08:12:51,565 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 08:12:56,643 - DEBUG - VM is in ACTIVE state now 2025-04-09 08:12:56,643 - INFO - VM name : ctest-TestBasicPolicy-31545931-84996224 2025-04-09 08:12:56,714 - DEBUG - VM ctest-TestBasicPolicy-31545931-84996224 ID is b0c79c16-f9d2-4877-8a43-d6ada36bc477 2025-04-09 08:12:56,731 - DEBUG - VM ctest-TestBasicPolicy-31545931-84996224 launched on Node cn-jenkins-deploy-platform-ansible-os-3061-1 2025-04-09 08:12:56,808 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/b0c79c16-f9d2-4877-8a43-d6ada36bc477 2025-04-09 08:12:56,818 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/9eeaf206-9db2-4453-a426-14c07eb89d23 2025-04-09 08:13:00,082 - 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 1026ms') 2025-04-09 08:13:00,082 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31545931-84996224 failed! 2025-04-09 08:13:00,138 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400 is 33.118.236.1 and allocation pool is NOT set 2025-04-09 08:13:02,197 - 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=5.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.746 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.746/3.300/5.854/2.554 ms') 2025-04-09 08:13:02,197 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31545931-84996224 passed 2025-04-09 08:13:02,354 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 08:13:02,354 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31545931-84996224, IP 33.118.236.3, Port 22 2025-04-09 08:13:02,510 - DEBUG - VM ctest-TestBasicPolicy-31545931-84996224 is ready for SSH connections 2025-04-09 08:13:02,510 - INFO - Waiting for VM ctest-TestBasicPolicy-31545931-57550754 to be up.. 2025-04-09 08:13:02,585 - DEBUG - VM is in ACTIVE state now 2025-04-09 08:13:02,586 - INFO - VM name : ctest-TestBasicPolicy-31545931-57550754 2025-04-09 08:13:02,658 - DEBUG - VM ctest-TestBasicPolicy-31545931-57550754 ID is d1e62cb4-294c-4dbc-91cb-6c58fb69acf4 2025-04-09 08:13:02,659 - DEBUG - VM ctest-TestBasicPolicy-31545931-57550754 launched on Node cn-jenkins-deploy-platform-ansible-os-3061-1 2025-04-09 08:13:02,730 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/d1e62cb4-294c-4dbc-91cb-6c58fb69acf4 2025-04-09 08:13:02,739 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/5d33b624-14d7-4514-a424-5511949c1812 2025-04-09 08:13:03,979 - 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=2.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.398 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.398/1.681/2.965/1.283 ms') 2025-04-09 08:13:03,979 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31545931-57550754 passed 2025-04-09 08:13:04,126 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 08:13:04,126 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31545931-57550754, IP 220.112.13.195, Port 22 2025-04-09 08:13:04,286 - DEBUG - VM ctest-TestBasicPolicy-31545931-57550754 is ready for SSH connections 2025-04-09 08:13:04,286 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 08:13:04,286 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.112.13.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-04-09 08:13:04,286 - DEBUG - ping -s 56 -c 3 -W 1 220.112.13.195 2025-04-09 08:13:07,964 - DEBUG - PING 220.112.13.195 (220.112.13.195): 56 data bytes 64 bytes from 220.112.13.195: seq=0 ttl=63 time=3.512 ms 64 bytes from 220.112.13.195: seq=1 ttl=63 time=0.942 ms 64 bytes from 220.112.13.195: seq=2 ttl=63 time=0.790 ms --- 220.112.13.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.790/1.748/3.512 ms 2025-04-09 08:13:07,964 - INFO - Ping to IP 220.112.13.195 from VM ctest-TestBasicPolicy-31545931-84996224 passed 2025-04-09 08:13:08,138 - DEBUG - Policy Update Response {"network-policy": {"uuid": "157453e7-f6e1-442b-ae71-f25ed17ffec2", "href": "http://10.0.0.42:8082/network-policy/157453e7-f6e1-442b-ae71-f25ed17ffec2"}} 2025-04-09 08:13:08,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 08:13:08,138 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.112.13.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-04-09 08:13:08,138 - DEBUG - ping -s 56 -c 3 -W 1 220.112.13.195 2025-04-09 08:13:11,348 - DEBUG - PING 220.112.13.195 (220.112.13.195): 56 data bytes --- 220.112.13.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-09 08:13:11,348 - WARNING - Ping to IP 220.112.13.195 from VM ctest-TestBasicPolicy-31545931-84996224 failed 2025-04-09 08:13:11,348 - INFO - Deleting VM ctest-TestBasicPolicy-31545931-57550754 2025-04-09 08:13:11,414 - INFO - Deleting VM ctest-TestBasicPolicy-31545931-84996224 2025-04-09 08:13:11,810 - INFO - Deleted policy ctest-policy-allow-all-11346897 2025-04-09 08:13:11,810 - INFO - Deleting VN ctest-vn-96214526 2025-04-09 08:13:11,851 - DEBUG - VN db62e4d0-9a58-4d03-83dd-7c04d9742e73 still in use: Unable to complete operation on network db62e4d0-9a58-4d03-83dd-7c04d9742e73. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-985cfac1-6b87-4620-928a-ebbb749baec5'] 2025-04-09 08:13:11,851 - WARNING - Deleting VN ctest-vn-96214526 failed..Will retry 2025-04-09 08:13:13,961 - DEBUG - Response for deleting network () 2025-04-09 08:13:13,961 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5 2025-04-09 08:13:13,970 - DEBUG - Response Code: 404 2025-04-09 08:13:13,970 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:13:13,977 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35 2025-04-09 08:13:14,032 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:13:14,103 - INFO - Validated that VN ctest-vn-96214526 is not found in API Server 2025-04-09 08:13:14,115 - DEBUG - VN ctest-vn-96214526 is not present in Agent 10.0.0.42 2025-04-09 08:13:14,115 - INFO - Validated that VN ctest-vn-96214526 is not in any agent 2025-04-09 08:13:14,130 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96214526 info 2025-04-09 08:13:14,130 - INFO - Deleting VN ctest-vn-17399400 2025-04-09 08:13:14,231 - DEBUG - Response for deleting network () 2025-04-09 08:13:14,231 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7 2025-04-09 08:13:14,237 - DEBUG - Response Code: 404 2025-04-09 08:13:14,237 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-04-09 08:13:14,242 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35 2025-04-09 08:13:14,295 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49 2025-04-09 08:13:14,368 - INFO - Validated that VN ctest-vn-17399400 is not found in API Server 2025-04-09 08:13:14,381 - DEBUG - VN ctest-vn-17399400 is not present in Agent 10.0.0.42 2025-04-09 08:13:14,381 - INFO - Validated that VN ctest-vn-17399400 is not in any agent 2025-04-09 08:13:14,397 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17399400 info 2025-04-09 08:13:14,651 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 08:13:14,652 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-04-09 08:13:14,652 - INFO - -------------------------------------------------------------------------------- 2025-04-09 08:13:15,356 - INFO - Deleted project: ctest-TestBasicPolicy-31545931, ID : 53f7f8a3-b054-484a-a9c2-4cf59b8dad49