2025-01-28 13:50:59,936 - INFO - Domain Default found not creating 2025-01-28 13:51:00,093 - INFO - Project ctest-TestBasicPolicy-78816929 not found, creating it 2025-01-28 13:51:00,552 - INFO - Created Project:ctest-TestBasicPolicy-78816929, ID : 2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:02,014 - INFO - ================================================================================ 2025-01-28 13:51:02,014 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-28 13:51:02,014 - 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-01-28 13:51:02,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with 2025-01-28 13:51:02,293 - INFO - Initial checks done. Running the testcase now 2025-01-28 13:51:02,293 - INFO - 2025-01-28 13:51:02,862 - DEBUG - Response for create_network : {'network': {'id': '2c37c483-c82d-4b64-ab1b-910373e3ba85', 'name': 'ctest-vn-29790442', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29790442'], 'port_security_enabled': True, 'description': ''}} 2025-01-28 13:51:03,064 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5c06b7b-fc39-4d3a-8f85-fce7ac19d86d', 'name': '', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'network_id': '2c37c483-c82d-4b64-ab1b-910373e3ba85', 'ip_version': 4, 'cidr': '11.129.214.64/26', 'allocation_pools': [{'start': '11.129.214.66', 'end': '11.129.214.126'}], 'gateway_ip': '11.129.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.129.214.66', 'tags': [], 'project_id': '2d58b736d3d4481aba3cc659b115dde6'}} 2025-01-28 13:51:03,083 - INFO - Created VN ctest-vn-29790442 2025-01-28 13:51:03,136 - DEBUG - VN ctest-vn-29790442 UUID is 2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:03,430 - DEBUG - Response for create_network : {'network': {'id': '0624bbde-2dd3-4bc2-99b3-038d182b79ca', 'name': 'ctest-vn-29203653', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29203653'], 'port_security_enabled': True, 'description': ''}} 2025-01-28 13:51:03,654 - DEBUG - Response for create_subnet : {'subnet': {'id': '89e05e31-f11b-4bc7-9a06-6e7bf4c4eba0', 'name': '', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'network_id': '0624bbde-2dd3-4bc2-99b3-038d182b79ca', 'ip_version': 4, 'cidr': '150.2.224.128/26', 'allocation_pools': [{'start': '150.2.224.130', 'end': '150.2.224.190'}], 'gateway_ip': '150.2.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.2.224.130', 'tags': [], 'project_id': '2d58b736d3d4481aba3cc659b115dde6'}} 2025-01-28 13:51:03,674 - INFO - Created VN ctest-vn-29203653 2025-01-28 13:51:03,728 - DEBUG - VN ctest-vn-29203653 UUID is 0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:03,854 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442, 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-78816929:ctest-vn-29203653, 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-01-28 13:51:04,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c37c483-c82d-4b64-ab1b-910373e3ba85', 'name': 'ctest-vn-29790442', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5c06b7b-fc39-4d3a-8f85-fce7ac19d86d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29790442'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273']], 'subnet_ipam': [{'subnet_cidr': '11.129.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-28 13:51:04,462 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0624bbde-2dd3-4bc2-99b3-038d182b79ca', 'name': 'ctest-vn-29203653', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89e05e31-f11b-4bc7-9a06-6e7bf4c4eba0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29203653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273']], 'subnet_ipam': [{'subnet_cidr': '150.2.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-28 13:51:04,612 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:04,915 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:04,943 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c 2025-01-28 13:51:04,957 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:05,030 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:05,043 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:05,054 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4 2025-01-28 13:51:05,064 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4 2025-01-28 13:51:05,073 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/36698a9c-27cc-47c1-926f-11b704eea960 2025-01-28 13:51:05,080 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-28 13:51:05,080 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:05,091 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4 2025-01-28 13:51:05,108 - INFO - Verified VN network id 7 for VN 2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:05,108 - INFO - Verifications in API Server for VN ctest-vn-29790442 passed 2025-01-28 13:51:05,108 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:05,119 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4 2025-01-28 13:51:05,129 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4 2025-01-28 13:51:05,139 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/36698a9c-27cc-47c1-926f-11b704eea960 2025-01-28 13:51:05,151 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78816929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3186231331666086756', 'uuid-lslong': '12329607848872098437'}, 'enable': 'true', 'created': '2025-01-28T13:51:02', 'last-modified': '2025-01-28T13:51:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004013'} 2025-01-28 13:51:05,158 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-28 13:51:05,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29790442 passed 2025-01-28 13:51:05,158 - DEBUG - ====Verifying policy data for ctest-vn-29790442 in API_Server ====== 2025-01-28 13:51:05,158 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:05,164 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c 2025-01-28 13:51:05,177 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:05,259 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85 2025-01-28 13:51:05,272 - DEBUG - ==>Verifying data for policy with id: ca793451-23b0-480a-926c-9da77b0fd12c, fqn: ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273'] 2025-01-28 13:51:05,272 - INFO - VN ctest-vn-29790442 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-28 13:51:05,273 - DEBUG - Verifying the vn in opserver 2025-01-28 13:51:05,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442 virtual network link through opserver 10.0.0.45 2025-01-28 13:51:05,273 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-28 13:51:05,566 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-28 13:51:05,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442?flat'} 2025-01-28 13:51:05,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442 is found in opserver 2025-01-28 13:51:05,640 - DEBUG - Do not have enough data to verify VN in agent 2025-01-28 13:51:05,647 - DEBUG - VRF ids for VN ctest-vn-29790442: {} 2025-01-28 13:51:05,647 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:05,655 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c 2025-01-28 13:51:05,668 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:05,757 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:05,773 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:05,784 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13 2025-01-28 13:51:05,792 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13 2025-01-28 13:51:05,800 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f82d3d44-000d-40ed-a2d5-b4fdfe541369 2025-01-28 13:51:05,807 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-28 13:51:05,807 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:05,818 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13 2025-01-28 13:51:05,837 - INFO - Verified VN network id 8 for VN 0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:05,837 - INFO - Verifications in API Server for VN ctest-vn-29203653 passed 2025-01-28 13:51:05,838 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:05,848 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13 2025-01-28 13:51:05,856 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13 2025-01-28 13:51:05,863 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f82d3d44-000d-40ed-a2d5-b4fdfe541369 2025-01-28 13:51:05,876 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78816929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '442685226315107266', 'uuid-lslong': '11075199813164956106'}, 'enable': 'true', 'created': '2025-01-28T13:51:03', 'last-modified': '2025-01-28T13:51:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490270'} 2025-01-28 13:51:05,883 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-28 13:51:05,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29203653 passed 2025-01-28 13:51:05,883 - DEBUG - ====Verifying policy data for ctest-vn-29203653 in API_Server ====== 2025-01-28 13:51:05,883 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:05,889 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c 2025-01-28 13:51:05,901 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:05,982 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca 2025-01-28 13:51:05,993 - DEBUG - ==>Verifying data for policy with id: ca793451-23b0-480a-926c-9da77b0fd12c, fqn: ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273'] 2025-01-28 13:51:05,993 - INFO - VN ctest-vn-29203653 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-28 13:51:05,993 - DEBUG - Verifying the vn in opserver 2025-01-28 13:51:05,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653 virtual network link through opserver 10.0.0.45 2025-01-28 13:51:05,993 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-28 13:51:06,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653?flat'} 2025-01-28 13:51:06,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653 is found in opserver 2025-01-28 13:51:06,017 - DEBUG - Do not have enough data to verify VN in agent 2025-01-28 13:51:06,023 - DEBUG - VRF ids for VN ctest-vn-29203653: {} 2025-01-28 13:51:06,095 - DEBUG - Services list from nova: [, , ] 2025-01-28 13:51:07,135 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2666-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2666-1) 2025-01-28 13:51:08,354 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2666-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2666-1) 2025-01-28 13:51:08,354 - INFO - Waiting for VM ctest-TestBasicPolicy-78816929-69366458 to be up.. 2025-01-28 13:51:08,445 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-28 13:51:13,530 - DEBUG - VM is in ACTIVE state now 2025-01-28 13:51:13,530 - INFO - VM name : ctest-TestBasicPolicy-78816929-69366458 2025-01-28 13:51:13,609 - DEBUG - VM ctest-TestBasicPolicy-78816929-69366458 ID is a3267877-1e87-4bb3-bdfc-3bcde909718b 2025-01-28 13:51:13,630 - DEBUG - VM ctest-TestBasicPolicy-78816929-69366458 launched on Node cn-jenkins-deploy-platform-ansible-os-2666-1 2025-01-28 13:51:13,722 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/a3267877-1e87-4bb3-bdfc-3bcde909718b 2025-01-28 13:51:13,732 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/af05c3e2-2f53-43fc-9d84-e60fc17dc52e 2025-01-28 13:51:16,952 - 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 1020ms') 2025-01-28 13:51:16,952 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78816929-69366458 failed! 2025-01-28 13:51:17,008 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442 is 11.129.214.65 and allocation pool is NOT set 2025-01-28 13:51:19,070 - 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=3.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.79 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.787/2.955/3.124/0.168 ms') 2025-01-28 13:51:19,070 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78816929-69366458 passed 2025-01-28 13:51:19,220 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-28 13:51:19,220 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78816929-69366458, IP 11.129.214.67, Port 22 2025-01-28 13:51:19,276 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-01-28 13:51:19,357 - DEBUG - VM ctest-TestBasicPolicy-78816929-69366458 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-28 13:51:24,357 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-28 13:51:24,357 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78816929-69366458, IP 11.129.214.67, Port 22 2025-01-28 13:51:24,512 - DEBUG - VM ctest-TestBasicPolicy-78816929-69366458 is ready for SSH connections 2025-01-28 13:51:24,512 - INFO - Waiting for VM ctest-TestBasicPolicy-78816929-59079554 to be up.. 2025-01-28 13:51:24,596 - DEBUG - VM is in ACTIVE state now 2025-01-28 13:51:24,596 - INFO - VM name : ctest-TestBasicPolicy-78816929-59079554 2025-01-28 13:51:24,677 - DEBUG - VM ctest-TestBasicPolicy-78816929-59079554 ID is 1023335e-96a6-401e-b355-d40838f869e1 2025-01-28 13:51:24,677 - DEBUG - VM ctest-TestBasicPolicy-78816929-59079554 launched on Node cn-jenkins-deploy-platform-ansible-os-2666-1 2025-01-28 13:51:24,757 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/1023335e-96a6-401e-b355-d40838f869e1 2025-01-28 13:51:24,765 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/23f3a257-fb2e-461f-85dc-1fdbc258047d 2025-01-28 13:51:25,997 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.453 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.453/2.066/3.679/1.613 ms') 2025-01-28 13:51:25,997 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-78816929-59079554 passed 2025-01-28 13:51:26,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-28 13:51:26,148 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78816929-59079554, IP 150.2.224.131, Port 22 2025-01-28 13:51:26,314 - DEBUG - VM ctest-TestBasicPolicy-78816929-59079554 is ready for SSH connections 2025-01-28 13:51:26,315 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-28 13:51:26,315 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.2.224.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-28 13:51:26,315 - DEBUG - ping -s 56 -c 3 -W 1 150.2.224.131 2025-01-28 13:51:30,303 - DEBUG - PING 150.2.224.131 (150.2.224.131): 56 data bytes 64 bytes from 150.2.224.131: seq=0 ttl=63 time=4.195 ms 64 bytes from 150.2.224.131: seq=1 ttl=63 time=0.788 ms 64 bytes from 150.2.224.131: seq=2 ttl=63 time=1.059 ms --- 150.2.224.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.788/2.014/4.195 ms 2025-01-28 13:51:30,303 - INFO - Ping to IP 150.2.224.131 from VM ctest-TestBasicPolicy-78816929-69366458 passed 2025-01-28 13:51:30,492 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ca793451-23b0-480a-926c-9da77b0fd12c", "href": "http://10.0.0.45:8082/network-policy/ca793451-23b0-480a-926c-9da77b0fd12c"}} 2025-01-28 13:51:30,492 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-28 13:51:30,492 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.2.224.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-28 13:51:30,492 - DEBUG - ping -s 56 -c 3 -W 1 150.2.224.131 2025-01-28 13:51:33,700 - DEBUG - PING 150.2.224.131 (150.2.224.131): 56 data bytes 64 bytes from 150.2.224.131: seq=0 ttl=63 time=1.526 ms --- 150.2.224.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.526/1.526/1.526 ms 2025-01-28 13:51:33,701 - WARNING - Ping to IP 150.2.224.131 from VM ctest-TestBasicPolicy-78816929-69366458 failed 2025-01-28 13:51:33,701 - INFO - Deleting VM ctest-TestBasicPolicy-78816929-59079554 2025-01-28 13:51:33,776 - INFO - Deleting VM ctest-TestBasicPolicy-78816929-69366458 2025-01-28 13:51:34,195 - INFO - Deleted policy ctest-policy-allow-all-07417273 2025-01-28 13:51:34,195 - INFO - Deleting VN ctest-vn-29203653 2025-01-28 13:51:34,231 - DEBUG - VN 0624bbde-2dd3-4bc2-99b3-038d182b79ca still in use: Unable to complete operation on network 0624bbde-2dd3-4bc2-99b3-038d182b79ca. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-12af934f-118c-49d0-ab5b-1725787781b4'] 2025-01-28 13:51:34,231 - WARNING - Deleting VN ctest-vn-29203653 failed..Will retry 2025-01-28 13:51:36,338 - DEBUG - Response for deleting network () 2025-01-28 13:51:36,338 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13 2025-01-28 13:51:36,347 - DEBUG - Response Code: 404 2025-01-28 13:51:36,347 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:36,353 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c 2025-01-28 13:51:36,406 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:36,480 - INFO - Validated that VN ctest-vn-29203653 is not found in API Server 2025-01-28 13:51:36,493 - DEBUG - VN ctest-vn-29203653 is not present in Agent 10.0.0.45 2025-01-28 13:51:36,493 - INFO - Validated that VN ctest-vn-29203653 is not in any agent 2025-01-28 13:51:36,511 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29203653 info 2025-01-28 13:51:36,512 - INFO - Deleting VN ctest-vn-29790442 2025-01-28 13:51:36,629 - DEBUG - Response for deleting network () 2025-01-28 13:51:36,630 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4 2025-01-28 13:51:36,635 - DEBUG - Response Code: 404 2025-01-28 13:51:36,635 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-28 13:51:36,642 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c 2025-01-28 13:51:36,697 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6 2025-01-28 13:51:36,774 - INFO - Validated that VN ctest-vn-29790442 is not found in API Server 2025-01-28 13:51:36,785 - DEBUG - VN ctest-vn-29790442 is not present in Agent 10.0.0.45 2025-01-28 13:51:36,785 - INFO - Validated that VN ctest-vn-29790442 is not in any agent 2025-01-28 13:51:36,801 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29790442 info 2025-01-28 13:51:37,058 - DEBUG - No XMPP flaps were noticed during the test
2025-01-28 13:51:37,058 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-28 13:51:37,058 - INFO - -------------------------------------------------------------------------------- 2025-01-28 13:51:37,743 - INFO - Deleted project: ctest-TestBasicPolicy-78816929, ID : 2d58b736-d3d4-481a-ba3c-c659b115dde6