2024-09-17 22:10:00,768 - INFO - Domain Default found not creating 2024-09-17 22:10:00,933 - INFO - Project ctest-TestBasicPolicy-45473075 not found, creating it 2024-09-17 22:10:01,413 - INFO - Created Project:ctest-TestBasicPolicy-45473075, ID : 8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:02,963 - INFO - ================================================================================ 2024-09-17 22:10:02,963 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 22:10:02,964 - 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-09-17 22:10:03,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.12': '0'}} with 2024-09-17 22:10:03,219 - INFO - Initial checks done. Running the testcase now 2024-09-17 22:10:03,219 - INFO - 2024-09-17 22:10:05,590 - DEBUG - Response for create_network : {'network': {'id': 'eef7ea10-48b2-4d31-b842-f7c0cd0bf3db', 'name': 'ctest-vn-81324015', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-81324015'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:10:05,825 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aecb81af-ebdd-4423-9d43-34d5b3d87093', 'name': '', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'network_id': 'eef7ea10-48b2-4d31-b842-f7c0cd0bf3db', 'ip_version': 4, 'cidr': '134.239.117.0/26', 'allocation_pools': [{'start': '134.239.117.2', 'end': '134.239.117.62'}], 'gateway_ip': '134.239.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.239.117.2', 'tags': [], 'project_id': '8779d600f661404ba933e5c38f0144fb'}} 2024-09-17 22:10:05,848 - INFO - Created VN ctest-vn-81324015 2024-09-17 22:10:05,908 - DEBUG - VN ctest-vn-81324015 UUID is eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:06,233 - DEBUG - Response for create_network : {'network': {'id': 'b62131ac-78e7-44c8-95ec-60eb4f86980a', 'name': 'ctest-vn-25642917', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-25642917'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:10:06,433 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cc69445-cd10-470b-998d-1775c9a2d06a', 'name': '', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'network_id': 'b62131ac-78e7-44c8-95ec-60eb4f86980a', 'ip_version': 4, 'cidr': '164.75.15.192/26', 'allocation_pools': [{'start': '164.75.15.194', 'end': '164.75.15.254'}], 'gateway_ip': '164.75.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.75.15.194', 'tags': [], 'project_id': '8779d600f661404ba933e5c38f0144fb'}} 2024-09-17 22:10:06,453 - INFO - Created VN ctest-vn-25642917 2024-09-17 22:10:06,512 - DEBUG - VN ctest-vn-25642917 UUID is b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:06,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015, 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-45473075:ctest-vn-25642917, 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-09-17 22:10:06,946 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eef7ea10-48b2-4d31-b842-f7c0cd0bf3db', 'name': 'ctest-vn-81324015', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aecb81af-ebdd-4423-9d43-34d5b3d87093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-81324015'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585']], 'subnet_ipam': [{'subnet_cidr': '134.239.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:10:07,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b62131ac-78e7-44c8-95ec-60eb4f86980a', 'name': 'ctest-vn-25642917', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cc69445-cd10-470b-998d-1775c9a2d06a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-25642917'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585']], 'subnet_ipam': [{'subnet_cidr': '164.75.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:10:07,336 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:07,630 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:07,662 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be 2024-09-17 22:10:07,676 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:07,757 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:07,772 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:07,786 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca 2024-09-17 22:10:07,795 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca 2024-09-17 22:10:07,804 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6e8d4954-726b-4fb1-afc4-c3b2e90aa595 2024-09-17 22:10:07,812 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 22:10:07,812 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:07,825 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca 2024-09-17 22:10:07,845 - INFO - Verified VN network id 7 for VN eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:07,845 - INFO - Verifications in API Server for VN ctest-vn-81324015 passed 2024-09-17 22:10:07,845 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:07,861 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca 2024-09-17 22:10:07,871 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca 2024-09-17 22:10:07,880 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6e8d4954-726b-4fb1-afc4-c3b2e90aa595 2024-09-17 22:10:07,896 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45473075', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17219489055934401841', 'uuid-lslong': '13277447058887537627'}, 'enable': 'true', 'created': '2024-09-17T22:10:05', 'last-modified': '2024-09-17T22:10:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978583'} 2024-09-17 22:10:07,903 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 22:10:07,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81324015 passed 2024-09-17 22:10:07,904 - DEBUG - ====Verifying policy data for ctest-vn-81324015 in API_Server ====== 2024-09-17 22:10:07,904 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:07,910 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be 2024-09-17 22:10:07,922 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:08,001 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db 2024-09-17 22:10:08,015 - DEBUG - ==>Verifying data for policy with id: 90a87219-2cc8-456c-9a25-15ff86a87afe, fqn: ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585'] 2024-09-17 22:10:08,015 - INFO - VN ctest-vn-81324015 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 22:10:08,015 - DEBUG - Verifying the vn in opserver 2024-09-17 22:10:08,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015 virtual network link through opserver 10.0.0.65 2024-09-17 22:10:08,015 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-09-17 22:10:08,308 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-09-17 22:10:08,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015?flat'} 2024-09-17 22:10:08,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015 is found in opserver 2024-09-17 22:10:08,382 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 22:10:08,387 - DEBUG - VRF ids for VN ctest-vn-81324015: {} 2024-09-17 22:10:08,387 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:08,394 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be 2024-09-17 22:10:08,407 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:08,483 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:08,500 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:08,513 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8 2024-09-17 22:10:08,524 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8 2024-09-17 22:10:08,533 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9f70dd2c-a204-4395-bfd8-91ac52db7ae6 2024-09-17 22:10:08,540 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 22:10:08,540 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:08,554 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8 2024-09-17 22:10:08,577 - INFO - Verified VN network id 8 for VN b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:08,577 - INFO - Verifications in API Server for VN ctest-vn-25642917 passed 2024-09-17 22:10:08,577 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:08,591 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8 2024-09-17 22:10:08,600 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8 2024-09-17 22:10:08,610 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9f70dd2c-a204-4395-bfd8-91ac52db7ae6 2024-09-17 22:10:08,624 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45473075', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13123825405966894280', 'uuid-lslong': '10803116169922779146'}, 'enable': 'true', 'created': '2024-09-17T22:10:06', 'last-modified': '2024-09-17T22:10:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462037'} 2024-09-17 22:10:08,631 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 22:10:08,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25642917 passed 2024-09-17 22:10:08,631 - DEBUG - ====Verifying policy data for ctest-vn-25642917 in API_Server ====== 2024-09-17 22:10:08,631 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:08,637 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be 2024-09-17 22:10:08,653 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:08,733 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a 2024-09-17 22:10:08,748 - DEBUG - ==>Verifying data for policy with id: 90a87219-2cc8-456c-9a25-15ff86a87afe, fqn: ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585'] 2024-09-17 22:10:08,748 - INFO - VN ctest-vn-25642917 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 22:10:08,748 - DEBUG - Verifying the vn in opserver 2024-09-17 22:10:08,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917 virtual network link through opserver 10.0.0.65 2024-09-17 22:10:08,748 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-09-17 22:10:08,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917?flat'} 2024-09-17 22:10:08,761 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917 is found in opserver 2024-09-17 22:10:08,772 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 22:10:08,778 - DEBUG - VRF ids for VN ctest-vn-25642917: {} 2024-09-17 22:10:08,833 - DEBUG - Services list from nova: [, , ] 2024-09-17 22:10:10,957 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1973-1) 2024-09-17 22:10:16,328 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1973-1) 2024-09-17 22:10:16,328 - INFO - Waiting for VM ctest-TestBasicPolicy-45473075-18513872 to be up.. 2024-09-17 22:10:16,433 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 22:10:21,513 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:10:21,513 - INFO - VM name : ctest-TestBasicPolicy-45473075-18513872 2024-09-17 22:10:21,589 - DEBUG - VM ctest-TestBasicPolicy-45473075-18513872 ID is fcfcea25-4a05-47f5-8b03-d17aa128658c 2024-09-17 22:10:21,611 - DEBUG - VM ctest-TestBasicPolicy-45473075-18513872 launched on Node cn-jenkins-deploy-platform-ansible-os-1973-1 2024-09-17 22:10:21,695 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/fcfcea25-4a05-47f5-8b03-d17aa128658c 2024-09-17 22:10:21,705 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/c968574c-e04f-4a77-9df7-e264b09ada2a 2024-09-17 22:10:24,974 - 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 1019ms') 2024-09-17 22:10:24,974 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45473075-18513872 failed! 2024-09-17 22:10:25,036 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015 is 134.239.117.1 and allocation pool is NOT set 2024-09-17 22:10:27,101 - 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=826 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.61 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 999ms\r\nrtt min/avg/max/mdev = 3.610/414.818/826.026/411.208 ms') 2024-09-17 22:10:27,101 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45473075-18513872 passed 2024-09-17 22:10:27,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:10:27,268 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45473075-18513872, IP 134.239.117.3, Port 22 2024-09-17 22:10:27,324 - 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': ''} 2024-09-17 22:10:27,403 - DEBUG - VM ctest-TestBasicPolicy-45473075-18513872 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-17 22:10:32,404 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:10:32,404 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45473075-18513872, IP 134.239.117.3, Port 22 2024-09-17 22:10:32,559 - DEBUG - VM ctest-TestBasicPolicy-45473075-18513872 is ready for SSH connections 2024-09-17 22:10:32,559 - INFO - Waiting for VM ctest-TestBasicPolicy-45473075-90034709 to be up.. 2024-09-17 22:10:32,644 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:10:32,644 - INFO - VM name : ctest-TestBasicPolicy-45473075-90034709 2024-09-17 22:10:32,721 - DEBUG - VM ctest-TestBasicPolicy-45473075-90034709 ID is f5d329cc-5222-48e6-b82f-d512bde16cc3 2024-09-17 22:10:32,721 - DEBUG - VM ctest-TestBasicPolicy-45473075-90034709 launched on Node cn-jenkins-deploy-platform-ansible-os-1973-1 2024-09-17 22:10:32,797 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/f5d329cc-5222-48e6-b82f-d512bde16cc3 2024-09-17 22:10:32,808 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/748a92ec-f812-4eb9-92fd-4f3132808303 2024-09-17 22:10:34,054 - 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.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.343 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.343/1.703/3.063/1.360 ms') 2024-09-17 22:10:34,054 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-45473075-90034709 passed 2024-09-17 22:10:34,212 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:10:34,212 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45473075-90034709, IP 164.75.15.195, Port 22 2024-09-17 22:10:34,367 - DEBUG - VM ctest-TestBasicPolicy-45473075-90034709 is ready for SSH connections 2024-09-17 22:10:34,367 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:10:34,367 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 164.75.15.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-09-17 22:10:34,367 - DEBUG - ping -s 56 -c 3 -W 1 164.75.15.195 2024-09-17 22:10:38,636 - DEBUG - PING 164.75.15.195 (164.75.15.195): 56 data bytes 64 bytes from 164.75.15.195: seq=0 ttl=63 time=3.358 ms 64 bytes from 164.75.15.195: seq=1 ttl=63 time=0.792 ms 64 bytes from 164.75.15.195: seq=2 ttl=63 time=0.795 ms --- 164.75.15.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.792/1.648/3.358 ms 2024-09-17 22:10:38,636 - INFO - Ping to IP 164.75.15.195 from VM ctest-TestBasicPolicy-45473075-18513872 passed 2024-09-17 22:10:38,820 - DEBUG - Policy Update Response {"network-policy": {"uuid": "90a87219-2cc8-456c-9a25-15ff86a87afe", "href": "http://10.0.0.65:8082/network-policy/90a87219-2cc8-456c-9a25-15ff86a87afe"}} 2024-09-17 22:10:38,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:10:38,820 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 164.75.15.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-09-17 22:10:38,820 - DEBUG - ping -s 56 -c 3 -W 1 164.75.15.195 2024-09-17 22:10:42,031 - DEBUG - PING 164.75.15.195 (164.75.15.195): 56 data bytes --- 164.75.15.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-17 22:10:42,031 - WARNING - Ping to IP 164.75.15.195 from VM ctest-TestBasicPolicy-45473075-18513872 failed 2024-09-17 22:10:42,031 - INFO - Deleting VM ctest-TestBasicPolicy-45473075-90034709 2024-09-17 22:10:42,091 - INFO - Deleting VM ctest-TestBasicPolicy-45473075-18513872 2024-09-17 22:10:42,767 - INFO - Deleted policy ctest-policy-allow-all-15156585 2024-09-17 22:10:42,767 - INFO - Deleting VN ctest-vn-25642917 2024-09-17 22:10:42,821 - DEBUG - VN b62131ac-78e7-44c8-95ec-60eb4f86980a still in use: Unable to complete operation on network b62131ac-78e7-44c8-95ec-60eb4f86980a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-313be64f-85e4-45e0-8c5e-98fc1714e884'] 2024-09-17 22:10:42,821 - WARNING - Deleting VN ctest-vn-25642917 failed..Will retry 2024-09-17 22:10:44,929 - DEBUG - Response for deleting network () 2024-09-17 22:10:44,929 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8 2024-09-17 22:10:44,938 - DEBUG - Response Code: 404 2024-09-17 22:10:44,938 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:44,950 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be 2024-09-17 22:10:45,015 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:45,117 - INFO - Validated that VN ctest-vn-25642917 is not found in API Server 2024-09-17 22:10:45,134 - DEBUG - VN ctest-vn-25642917 is not present in Agent 10.0.0.65 2024-09-17 22:10:45,134 - INFO - Validated that VN ctest-vn-25642917 is not in any agent 2024-09-17 22:10:45,158 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25642917 info 2024-09-17 22:10:45,159 - INFO - Deleting VN ctest-vn-81324015 2024-09-17 22:10:45,285 - DEBUG - Response for deleting network () 2024-09-17 22:10:45,285 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca 2024-09-17 22:10:45,296 - DEBUG - Response Code: 404 2024-09-17 22:10:45,296 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 22:10:45,303 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be 2024-09-17 22:10:45,358 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb 2024-09-17 22:10:45,451 - INFO - Validated that VN ctest-vn-81324015 is not found in API Server 2024-09-17 22:10:45,463 - DEBUG - VN ctest-vn-81324015 is not present in Agent 10.0.0.65 2024-09-17 22:10:45,463 - INFO - Validated that VN ctest-vn-81324015 is not in any agent 2024-09-17 22:10:45,479 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81324015 info 2024-09-17 22:10:45,733 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 22:10:45,733 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:43]
2024-09-17 22:10:45,733 - INFO - -------------------------------------------------------------------------------- 2024-09-17 22:10:47,923 - INFO - Deleted project: ctest-TestBasicPolicy-45473075, ID : 8779d600-f661-404b-a933-e5c38f0144fb