2024-11-08 22:40:55,079 - INFO - Domain Default found not creating 2024-11-08 22:40:55,249 - INFO - Project ctest-TestBasicPolicy-59481111 not found, creating it 2024-11-08 22:40:55,726 - INFO - Created Project:ctest-TestBasicPolicy-59481111, ID : 20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:40:57,183 - INFO - ================================================================================ 2024-11-08 22:40:57,183 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 22:40:57,183 - 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-11-08 22:40:57,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with 2024-11-08 22:40:57,437 - INFO - Initial checks done. Running the testcase now 2024-11-08 22:40:57,437 - INFO - 2024-11-08 22:40:58,012 - DEBUG - Response for create_network : {'network': {'id': '55a49a63-ff27-42cc-82eb-e2ed786a5946', 'name': 'ctest-vn-87744720', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-87744720'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 22:40:58,231 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b71a79c6-4e29-4339-a0ae-a438a57efc3b', 'name': '', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'network_id': '55a49a63-ff27-42cc-82eb-e2ed786a5946', 'ip_version': 4, 'cidr': '171.87.183.0/26', 'allocation_pools': [{'start': '171.87.183.2', 'end': '171.87.183.62'}], 'gateway_ip': '171.87.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.87.183.2', 'tags': [], 'project_id': '20659ee9aeae474da82d71e428d445b1'}} 2024-11-08 22:40:58,250 - INFO - Created VN ctest-vn-87744720 2024-11-08 22:40:58,311 - DEBUG - VN ctest-vn-87744720 UUID is 55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:40:58,670 - DEBUG - Response for create_network : {'network': {'id': 'cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1', 'name': 'ctest-vn-41824046', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-41824046'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 22:40:58,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '144de145-8d9a-4514-8a00-b1e4aaceebf8', 'name': '', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'network_id': 'cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1', 'ip_version': 4, 'cidr': '157.203.136.64/26', 'allocation_pools': [{'start': '157.203.136.66', 'end': '157.203.136.126'}], 'gateway_ip': '157.203.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.203.136.66', 'tags': [], 'project_id': '20659ee9aeae474da82d71e428d445b1'}} 2024-11-08 22:40:58,861 - INFO - Created VN ctest-vn-41824046 2024-11-08 22:40:58,919 - DEBUG - VN ctest-vn-41824046 UUID is cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:40:59,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720, 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-59481111:ctest-vn-41824046, 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-11-08 22:40:59,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55a49a63-ff27-42cc-82eb-e2ed786a5946', 'name': 'ctest-vn-87744720', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b71a79c6-4e29-4339-a0ae-a438a57efc3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-87744720'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853']], 'subnet_ipam': [{'subnet_cidr': '171.87.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 22:40:59,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1', 'name': 'ctest-vn-41824046', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['144de145-8d9a-4514-8a00-b1e4aaceebf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-41824046'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853']], 'subnet_ipam': [{'subnet_cidr': '157.203.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 22:40:59,791 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:00,087 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:00,116 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87 2024-11-08 22:41:00,130 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:41:00,209 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:41:00,226 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:41:00,239 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774 2024-11-08 22:41:00,246 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774 2024-11-08 22:41:00,254 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5b93c099-853d-4a78-a950-d15dee67cb3b 2024-11-08 22:41:00,260 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 22:41:00,260 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:41:00,273 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774 2024-11-08 22:41:00,290 - INFO - Verified VN network id 9 for VN 55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:41:00,290 - INFO - Verifications in API Server for VN ctest-vn-87744720 passed 2024-11-08 22:41:00,290 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:41:00,302 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774 2024-11-08 22:41:00,310 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774 2024-11-08 22:41:00,317 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5b93c099-853d-4a78-a950-d15dee67cb3b 2024-11-08 22:41:00,331 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59481111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6171227143677625036', 'uuid-lslong': '9433883354012997958'}, 'enable': 'true', 'created': '2024-11-08T22:40:57', 'last-modified': '2024-11-08T22:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003452'} 2024-11-08 22:41:00,337 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 22:41:00,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87744720 passed 2024-11-08 22:41:00,338 - DEBUG - ====Verifying policy data for ctest-vn-87744720 in API_Server ====== 2024-11-08 22:41:00,338 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:00,342 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87 2024-11-08 22:41:00,354 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:41:00,436 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946 2024-11-08 22:41:00,449 - DEBUG - ==>Verifying data for policy with id: 4aae9820-5d14-484c-a45d-b1c4fa55f9fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853'] 2024-11-08 22:41:00,449 - INFO - VN ctest-vn-87744720 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 22:41:00,449 - DEBUG - Verifying the vn in opserver 2024-11-08 22:41:00,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720 virtual network link through opserver 10.0.0.23 2024-11-08 22:41:00,450 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-08 22:41:00,742 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-08 22:41:00,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720?flat'} 2024-11-08 22:41:00,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720 is found in opserver 2024-11-08 22:41:00,813 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 22:41:00,818 - DEBUG - VRF ids for VN ctest-vn-87744720: {} 2024-11-08 22:41:00,818 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:00,825 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87 2024-11-08 22:41:00,842 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:41:00,932 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:41:00,947 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:41:00,960 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0 2024-11-08 22:41:00,971 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0 2024-11-08 22:41:00,979 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5e3d25ec-6d8e-4e15-95d9-ddf8a21ff7d2 2024-11-08 22:41:00,987 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 22:41:00,987 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:41:01,004 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0 2024-11-08 22:41:01,031 - INFO - Verified VN network id 10 for VN cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:41:01,031 - INFO - Verifications in API Server for VN ctest-vn-41824046 passed 2024-11-08 22:41:01,032 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:41:01,045 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0 2024-11-08 22:41:01,055 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0 2024-11-08 22:41:01,068 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5e3d25ec-6d8e-4e15-95d9-ddf8a21ff7d2 2024-11-08 22:41:01,081 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59481111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14937590218642639044', 'uuid-lslong': '12268198731581378209'}, 'enable': 'true', 'created': '2024-11-08T22:40:58', 'last-modified': '2024-11-08T22:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.512876'} 2024-11-08 22:41:01,088 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 22:41:01,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41824046 passed 2024-11-08 22:41:01,088 - DEBUG - ====Verifying policy data for ctest-vn-41824046 in API_Server ====== 2024-11-08 22:41:01,088 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:01,094 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87 2024-11-08 22:41:01,108 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:41:01,203 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 2024-11-08 22:41:01,216 - DEBUG - ==>Verifying data for policy with id: 4aae9820-5d14-484c-a45d-b1c4fa55f9fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853'] 2024-11-08 22:41:01,216 - INFO - VN ctest-vn-41824046 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 22:41:01,216 - DEBUG - Verifying the vn in opserver 2024-11-08 22:41:01,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046 virtual network link through opserver 10.0.0.23 2024-11-08 22:41:01,217 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-08 22:41:01,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046?flat'} 2024-11-08 22:41:01,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046 is found in opserver 2024-11-08 22:41:01,242 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 22:41:01,248 - DEBUG - VRF ids for VN ctest-vn-41824046: {} 2024-11-08 22:41:01,306 - DEBUG - Services list from nova: [, , ] 2024-11-08 22:41:02,405 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2242-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2242-1) 2024-11-08 22:41:03,996 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2242-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2242-1) 2024-11-08 22:41:03,996 - INFO - Waiting for VM ctest-TestBasicPolicy-59481111-41443610 to be up.. 2024-11-08 22:41:04,152 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 22:41:09,246 - DEBUG - VM is in ACTIVE state now 2024-11-08 22:41:09,246 - INFO - VM name : ctest-TestBasicPolicy-59481111-41443610 2024-11-08 22:41:09,333 - DEBUG - VM ctest-TestBasicPolicy-59481111-41443610 ID is 8aa10922-1e6b-47a5-803f-7ab3e1e16fd3 2024-11-08 22:41:09,355 - DEBUG - VM ctest-TestBasicPolicy-59481111-41443610 launched on Node cn-jenkins-deploy-platform-ansible-os-2242-1 2024-11-08 22:41:09,442 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/8aa10922-1e6b-47a5-803f-7ab3e1e16fd3 2024-11-08 22:41:09,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/5956b666-9623-41ee-8049-8beeeecdd14c 2024-11-08 22:41:12,730 - 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 1011ms') 2024-11-08 22:41:12,731 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59481111-41443610 failed! 2024-11-08 22:41:12,787 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720 is 171.87.183.1 and allocation pool is NOT set 2024-11-08 22:41:14,845 - 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=2.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.459 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.459/1.648/2.837/1.189 ms') 2024-11-08 22:41:14,845 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59481111-41443610 passed 2024-11-08 22:41:15,003 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 22:41:15,003 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59481111-41443610, IP 171.87.183.3, Port 22 2024-11-08 22:41:15,158 - DEBUG - VM ctest-TestBasicPolicy-59481111-41443610 is ready for SSH connections 2024-11-08 22:41:15,158 - INFO - Waiting for VM ctest-TestBasicPolicy-59481111-38525037 to be up.. 2024-11-08 22:41:15,239 - DEBUG - VM is in ACTIVE state now 2024-11-08 22:41:15,239 - INFO - VM name : ctest-TestBasicPolicy-59481111-38525037 2024-11-08 22:41:15,318 - DEBUG - VM ctest-TestBasicPolicy-59481111-38525037 ID is 43d9adad-29bf-4fd1-91f3-3411b804d391 2024-11-08 22:41:15,318 - DEBUG - VM ctest-TestBasicPolicy-59481111-38525037 launched on Node cn-jenkins-deploy-platform-ansible-os-2242-1 2024-11-08 22:41:15,393 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/43d9adad-29bf-4fd1-91f3-3411b804d391 2024-11-08 22:41:15,402 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/ec1d306b-53ea-4e0a-a0fb-d800fc5c9f47 2024-11-08 22:41:16,645 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.66 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 = 2.664/2.792/2.921/0.128 ms') 2024-11-08 22:41:16,645 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59481111-38525037 passed 2024-11-08 22:41:16,803 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 22:41:16,803 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59481111-38525037, IP 157.203.136.67, Port 22 2024-11-08 22:41:16,861 - 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-11-08 22:41:16,953 - DEBUG - VM ctest-TestBasicPolicy-59481111-38525037 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-08 22:41:21,954 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 22:41:21,954 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59481111-38525037, IP 157.203.136.67, Port 22 2024-11-08 22:41:22,122 - DEBUG - VM ctest-TestBasicPolicy-59481111-38525037 is ready for SSH connections 2024-11-08 22:41:22,122 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 22:41:22,122 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.203.136.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-08 22:41:22,122 - DEBUG - ping -s 56 -c 3 -W 1 157.203.136.67 2024-11-08 22:41:26,072 - DEBUG - PING 157.203.136.67 (157.203.136.67): 56 data bytes 64 bytes from 157.203.136.67: seq=0 ttl=63 time=3.301 ms 64 bytes from 157.203.136.67: seq=1 ttl=63 time=0.924 ms 64 bytes from 157.203.136.67: seq=2 ttl=63 time=1.069 ms --- 157.203.136.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.924/1.764/3.301 ms 2024-11-08 22:41:26,073 - INFO - Ping to IP 157.203.136.67 from VM ctest-TestBasicPolicy-59481111-41443610 passed 2024-11-08 22:41:26,267 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4aae9820-5d14-484c-a45d-b1c4fa55f9fb", "href": "http://10.0.0.23:8082/network-policy/4aae9820-5d14-484c-a45d-b1c4fa55f9fb"}} 2024-11-08 22:41:26,267 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 22:41:26,267 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.203.136.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-08 22:41:26,267 - DEBUG - ping -s 56 -c 3 -W 1 157.203.136.67 2024-11-08 22:41:29,463 - DEBUG - PING 157.203.136.67 (157.203.136.67): 56 data bytes 64 bytes from 157.203.136.67: seq=0 ttl=63 time=1.497 ms --- 157.203.136.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.497/1.497/1.497 ms 2024-11-08 22:41:29,463 - WARNING - Ping to IP 157.203.136.67 from VM ctest-TestBasicPolicy-59481111-41443610 failed 2024-11-08 22:41:29,464 - INFO - Deleting VM ctest-TestBasicPolicy-59481111-38525037 2024-11-08 22:41:29,525 - INFO - Deleting VM ctest-TestBasicPolicy-59481111-41443610 2024-11-08 22:41:29,918 - INFO - Deleted policy ctest-policy-allow-all-67995853 2024-11-08 22:41:29,918 - INFO - Deleting VN ctest-vn-41824046 2024-11-08 22:41:29,957 - DEBUG - VN cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1 still in use: Unable to complete operation on network cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a51dbf7c-0a75-41cb-8968-8d08757b891f'] 2024-11-08 22:41:29,957 - WARNING - Deleting VN ctest-vn-41824046 failed..Will retry 2024-11-08 22:41:32,067 - DEBUG - Response for deleting network () 2024-11-08 22:41:32,067 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0 2024-11-08 22:41:32,072 - DEBUG - Response Code: 404 2024-11-08 22:41:32,072 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:32,081 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87 2024-11-08 22:41:32,139 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:41:32,226 - INFO - Validated that VN ctest-vn-41824046 is not found in API Server 2024-11-08 22:41:32,237 - DEBUG - VN ctest-vn-41824046 is not present in Agent 10.0.0.23 2024-11-08 22:41:32,237 - INFO - Validated that VN ctest-vn-41824046 is not in any agent 2024-11-08 22:41:32,255 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41824046 info 2024-11-08 22:41:32,255 - INFO - Deleting VN ctest-vn-87744720 2024-11-08 22:41:32,370 - DEBUG - Response for deleting network () 2024-11-08 22:41:32,370 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774 2024-11-08 22:41:32,377 - DEBUG - Response Code: 404 2024-11-08 22:41:32,377 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-08 22:41:32,385 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87 2024-11-08 22:41:32,443 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1 2024-11-08 22:41:32,522 - INFO - Validated that VN ctest-vn-87744720 is not found in API Server 2024-11-08 22:41:32,532 - DEBUG - VN ctest-vn-87744720 is not present in Agent 10.0.0.23 2024-11-08 22:41:32,532 - INFO - Validated that VN ctest-vn-87744720 is not in any agent 2024-11-08 22:41:32,547 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87744720 info 2024-11-08 22:41:32,804 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 22:41:32,805 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-11-08 22:41:32,805 - INFO - -------------------------------------------------------------------------------- 2024-11-08 22:41:33,504 - INFO - Deleted project: ctest-TestBasicPolicy-59481111, ID : 20659ee9-aeae-474d-a82d-71e428d445b1