2024-10-21 02:28:20,731 - INFO - Domain Default found not creating 2024-10-21 02:28:20,925 - INFO - Project ctest-TestBasicPolicy-94810989 not found, creating it 2024-10-21 02:28:21,400 - INFO - Created Project:ctest-TestBasicPolicy-94810989, ID : 5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:23,119 - INFO - ================================================================================ 2024-10-21 02:28:23,119 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-21 02:28:23,119 - 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 2024-10-21 02:28:23,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.21': '0'}} with 2024-10-21 02:28:23,375 - INFO - Initial checks done. Running the testcase now 2024-10-21 02:28:23,375 - INFO - 2024-10-21 02:28:24,003 - DEBUG - Response for create_network : {'network': {'id': '1409ac6d-4cae-49c7-a81c-23215b363b68', 'name': 'ctest-vn-26587834', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-26587834'], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:28:24,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d132c1e-ca3f-4eb8-9a66-6c214e0ed19d', 'name': '', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'network_id': '1409ac6d-4cae-49c7-a81c-23215b363b68', 'ip_version': 4, 'cidr': '198.170.237.0/26', 'allocation_pools': [{'start': '198.170.237.2', 'end': '198.170.237.62'}], 'gateway_ip': '198.170.237.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.170.237.2', 'tags': [], 'project_id': '5a6fe318204d45ba9f758b3ab814fc81'}} 2024-10-21 02:28:24,235 - INFO - Created VN ctest-vn-26587834 2024-10-21 02:28:24,288 - DEBUG - VN ctest-vn-26587834 UUID is 1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:24,614 - DEBUG - Response for create_network : {'network': {'id': 'fb9f04c8-cd12-41aa-aba8-294dcf1d787a', 'name': 'ctest-vn-48642526', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-48642526'], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:28:24,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '54449ed7-039d-443a-bb1f-890f45a31066', 'name': '', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'network_id': 'fb9f04c8-cd12-41aa-aba8-294dcf1d787a', 'ip_version': 4, 'cidr': '41.106.78.128/26', 'allocation_pools': [{'start': '41.106.78.130', 'end': '41.106.78.190'}], 'gateway_ip': '41.106.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.106.78.130', 'tags': [], 'project_id': '5a6fe318204d45ba9f758b3ab814fc81'}} 2024-10-21 02:28:24,846 - INFO - Created VN ctest-vn-48642526 2024-10-21 02:28:24,899 - DEBUG - VN ctest-vn-48642526 UUID is fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:25,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834, 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-94810989:ctest-vn-48642526, 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] 2024-10-21 02:28:25,367 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1409ac6d-4cae-49c7-a81c-23215b363b68', 'name': 'ctest-vn-26587834', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d132c1e-ca3f-4eb8-9a66-6c214e0ed19d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-26587834'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766']], 'subnet_ipam': [{'subnet_cidr': '198.170.237.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:28:25,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb9f04c8-cd12-41aa-aba8-294dcf1d787a', 'name': 'ctest-vn-48642526', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54449ed7-039d-443a-bb1f-890f45a31066'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-48642526'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766']], 'subnet_ipam': [{'subnet_cidr': '41.106.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:28:25,779 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:26,128 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:26,164 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22 2024-10-21 02:28:26,180 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:26,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:26,269 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:26,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4 2024-10-21 02:28:26,287 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4 2024-10-21 02:28:26,295 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/53e73ac7-342d-4ee5-88b5-64108da26429 2024-10-21 02:28:26,302 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-21 02:28:26,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:26,312 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4 2024-10-21 02:28:26,326 - INFO - Verified VN network id 8 for VN 1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:26,326 - INFO - Verifications in API Server for VN ctest-vn-26587834 passed 2024-10-21 02:28:26,326 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:26,337 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4 2024-10-21 02:28:26,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4 2024-10-21 02:28:26,354 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/53e73ac7-342d-4ee5-88b5-64108da26429 2024-10-21 02:28:26,369 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94810989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1443874740986857927', 'uuid-lslong': '12113595723890965352'}, 'enable': 'true', 'created': '2024-10-21T02:28:23', 'last-modified': '2024-10-21T02:28:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037046'} 2024-10-21 02:28:26,377 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-21 02:28:26,377 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26587834 passed 2024-10-21 02:28:26,377 - DEBUG - ====Verifying policy data for ctest-vn-26587834 in API_Server ====== 2024-10-21 02:28:26,377 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:26,385 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22 2024-10-21 02:28:26,399 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:26,475 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68 2024-10-21 02:28:26,484 - DEBUG - ==>Verifying data for policy with id: 151cb47b-962e-4994-a477-2b09a88cb9bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766'] 2024-10-21 02:28:26,484 - INFO - VN ctest-vn-26587834 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-21 02:28:26,485 - DEBUG - Verifying the vn in opserver 2024-10-21 02:28:26,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834 virtual network link through opserver 10.0.0.38 2024-10-21 02:28:26,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-10-21 02:28:26,825 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-10-21 02:28:26,898 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834?flat'} 2024-10-21 02:28:26,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834 is found in opserver 2024-10-21 02:28:26,912 - DEBUG - Do not have enough data to verify VN in agent 2024-10-21 02:28:26,918 - DEBUG - VRF ids for VN ctest-vn-26587834: {} 2024-10-21 02:28:26,918 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:26,926 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22 2024-10-21 02:28:26,941 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:27,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:27,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:27,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f 2024-10-21 02:28:27,046 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f 2024-10-21 02:28:27,054 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f02cb96-ec40-40e4-afa8-9af76bf39157 2024-10-21 02:28:27,063 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-21 02:28:27,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:27,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f 2024-10-21 02:28:27,092 - INFO - Verified VN network id 9 for VN fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:27,092 - INFO - Verifications in API Server for VN ctest-vn-48642526 passed 2024-10-21 02:28:27,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:27,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f 2024-10-21 02:28:27,119 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f 2024-10-21 02:28:27,130 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f02cb96-ec40-40e4-afa8-9af76bf39157 2024-10-21 02:28:27,146 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94810989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18131215885297402282', 'uuid-lslong': '12369181790737102970'}, 'enable': 'true', 'created': '2024-10-21T02:28:24', 'last-modified': '2024-10-21T02:28:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539174'} 2024-10-21 02:28:27,153 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-21 02:28:27,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48642526 passed 2024-10-21 02:28:27,153 - DEBUG - ====Verifying policy data for ctest-vn-48642526 in API_Server ====== 2024-10-21 02:28:27,154 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:27,161 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22 2024-10-21 02:28:27,175 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:27,252 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a 2024-10-21 02:28:27,261 - DEBUG - ==>Verifying data for policy with id: 151cb47b-962e-4994-a477-2b09a88cb9bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766'] 2024-10-21 02:28:27,261 - INFO - VN ctest-vn-48642526 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-21 02:28:27,261 - DEBUG - Verifying the vn in opserver 2024-10-21 02:28:27,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526 virtual network link through opserver 10.0.0.38 2024-10-21 02:28:27,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-10-21 02:28:27,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526?flat'} 2024-10-21 02:28:27,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526 is found in opserver 2024-10-21 02:28:27,288 - DEBUG - Do not have enough data to verify VN in agent 2024-10-21 02:28:27,294 - DEBUG - VRF ids for VN ctest-vn-48642526: {} 2024-10-21 02:28:27,363 - DEBUG - Services list from nova: [, , ] 2024-10-21 02:28:28,553 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2122-1) 2024-10-21 02:28:29,978 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2122-1) 2024-10-21 02:28:29,979 - INFO - Waiting for VM ctest-TestBasicPolicy-94810989-89638945 to be up.. 2024-10-21 02:28:30,080 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-21 02:28:35,180 - DEBUG - VM is in ACTIVE state now 2024-10-21 02:28:35,180 - INFO - VM name : ctest-TestBasicPolicy-94810989-89638945 2024-10-21 02:28:35,271 - DEBUG - VM ctest-TestBasicPolicy-94810989-89638945 ID is 5820811f-cd8c-407c-894f-03b606d22e0d 2024-10-21 02:28:35,296 - DEBUG - VM ctest-TestBasicPolicy-94810989-89638945 launched on Node cn-jenkins-deploy-platform-ansible-os-2122-1 2024-10-21 02:28:35,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/5820811f-cd8c-407c-894f-03b606d22e0d 2024-10-21 02:28:35,409 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/9dcba90a-586d-4b12-94f3-7c1c866a0ccd 2024-10-21 02:28:38,671 - 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 1022ms') 2024-10-21 02:28:38,671 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94810989-89638945 failed! 2024-10-21 02:28:38,727 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834 is 198.170.237.1 and allocation pool is NOT set 2024-10-21 02:28:40,796 - 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=6.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.85 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.847/4.780/6.714/1.933 ms') 2024-10-21 02:28:40,796 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94810989-89638945 passed 2024-10-21 02:28:40,951 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:40,952 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94810989-89638945, IP 198.170.237.3, Port 22 2024-10-21 02:28:41,116 - DEBUG - VM ctest-TestBasicPolicy-94810989-89638945 is ready for SSH connections 2024-10-21 02:28:41,116 - INFO - Waiting for VM ctest-TestBasicPolicy-94810989-44380665 to be up.. 2024-10-21 02:28:41,207 - DEBUG - VM is in ACTIVE state now 2024-10-21 02:28:41,207 - INFO - VM name : ctest-TestBasicPolicy-94810989-44380665 2024-10-21 02:28:41,293 - DEBUG - VM ctest-TestBasicPolicy-94810989-44380665 ID is 357df4d9-b57a-4c90-9068-c93b5d770e22 2024-10-21 02:28:41,293 - DEBUG - VM ctest-TestBasicPolicy-94810989-44380665 launched on Node cn-jenkins-deploy-platform-ansible-os-2122-1 2024-10-21 02:28:41,384 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/357df4d9-b57a-4c90-9068-c93b5d770e22 2024-10-21 02:28:41,396 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/9d84dac3-3afb-4aef-9f35-9cbbc6836e18 2024-10-21 02:28:42,646 - 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=4.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.819 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 = 0.819/2.799/4.779/1.980 ms') 2024-10-21 02:28:42,646 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-94810989-44380665 passed 2024-10-21 02:28:42,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:42,800 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94810989-44380665, IP 41.106.78.131, Port 22 2024-10-21 02:28:42,865 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-21 02:28:42,970 - DEBUG - VM ctest-TestBasicPolicy-94810989-44380665 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-21 02:28:47,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:47,972 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94810989-44380665, IP 41.106.78.131, Port 22 2024-10-21 02:28:48,138 - DEBUG - VM ctest-TestBasicPolicy-94810989-44380665 is ready for SSH connections 2024-10-21 02:28:48,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:48,139 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 41.106.78.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-10-21 02:28:48,139 - DEBUG - ping -s 56 -c 3 -W 1 41.106.78.131 2024-10-21 02:28:52,290 - DEBUG - PING 41.106.78.131 (41.106.78.131): 56 data bytes 64 bytes from 41.106.78.131: seq=0 ttl=63 time=4.304 ms 64 bytes from 41.106.78.131: seq=1 ttl=63 time=0.951 ms 64 bytes from 41.106.78.131: seq=2 ttl=63 time=0.871 ms --- 41.106.78.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.871/2.042/4.304 ms 2024-10-21 02:28:52,290 - INFO - Ping to IP 41.106.78.131 from VM ctest-TestBasicPolicy-94810989-89638945 passed 2024-10-21 02:28:52,475 - DEBUG - Policy Update Response {"network-policy": {"uuid": "151cb47b-962e-4994-a477-2b09a88cb9bd", "href": "http://10.0.0.38:8082/network-policy/151cb47b-962e-4994-a477-2b09a88cb9bd"}} 2024-10-21 02:28:52,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:52,476 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 41.106.78.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-10-21 02:28:52,476 - DEBUG - ping -s 56 -c 3 -W 1 41.106.78.131 2024-10-21 02:28:55,706 - DEBUG - PING 41.106.78.131 (41.106.78.131): 56 data bytes 64 bytes from 41.106.78.131: seq=0 ttl=63 time=1.571 ms --- 41.106.78.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.571/1.571/1.571 ms 2024-10-21 02:28:55,707 - WARNING - Ping to IP 41.106.78.131 from VM ctest-TestBasicPolicy-94810989-89638945 failed 2024-10-21 02:28:55,707 - INFO - Deleting VM ctest-TestBasicPolicy-94810989-44380665 2024-10-21 02:28:55,783 - INFO - Deleting VM ctest-TestBasicPolicy-94810989-89638945 2024-10-21 02:28:56,249 - INFO - Deleted policy ctest-policy-allow-all-41862766 2024-10-21 02:28:56,249 - INFO - Deleting VN ctest-vn-48642526 2024-10-21 02:28:56,331 - DEBUG - VN fb9f04c8-cd12-41aa-aba8-294dcf1d787a still in use: Unable to complete operation on network fb9f04c8-cd12-41aa-aba8-294dcf1d787a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a2d76223-df08-49c6-a868-c6a6e769d4ce'] 2024-10-21 02:28:56,331 - WARNING - Deleting VN ctest-vn-48642526 failed..Will retry 2024-10-21 02:28:58,465 - DEBUG - Response for deleting network () 2024-10-21 02:28:58,465 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f 2024-10-21 02:28:58,479 - DEBUG - Response Code: 404 2024-10-21 02:28:58,479 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:58,487 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22 2024-10-21 02:28:58,547 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:58,642 - INFO - Validated that VN ctest-vn-48642526 is not found in API Server 2024-10-21 02:28:58,658 - DEBUG - VN ctest-vn-48642526 is not present in Agent 10.0.0.38 2024-10-21 02:28:58,658 - INFO - Validated that VN ctest-vn-48642526 is not in any agent 2024-10-21 02:28:58,676 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48642526 info 2024-10-21 02:28:58,677 - INFO - Deleting VN ctest-vn-26587834 2024-10-21 02:28:58,821 - DEBUG - Response for deleting network () 2024-10-21 02:28:58,821 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4 2024-10-21 02:28:58,833 - DEBUG - Response Code: 404 2024-10-21 02:28:58,833 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-21 02:28:58,841 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22 2024-10-21 02:28:58,898 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81 2024-10-21 02:28:58,975 - INFO - Validated that VN ctest-vn-26587834 is not found in API Server 2024-10-21 02:28:58,987 - DEBUG - VN ctest-vn-26587834 is not present in Agent 10.0.0.38 2024-10-21 02:28:58,987 - INFO - Validated that VN ctest-vn-26587834 is not in any agent 2024-10-21 02:28:59,007 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26587834 info 2024-10-21 02:28:59,275 - DEBUG - No XMPP flaps were noticed during the test
2024-10-21 02:28:59,275 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-10-21 02:28:59,276 - INFO - -------------------------------------------------------------------------------- 2024-10-21 02:29:00,043 - INFO - Deleted project: ctest-TestBasicPolicy-94810989, ID : 5a6fe318-204d-45ba-9f75-8b3ab814fc81