2025-12-08 02:42:02,265 - INFO - Domain Default found not creating 2025-12-08 02:42:02,460 - INFO - Project ctest-TestBasicPolicy-07771647 not found, creating it 2025-12-08 02:42:02,986 - INFO - Created Project:ctest-TestBasicPolicy-07771647, ID : 8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:42:04,783 - INFO - ================================================================================ 2025-12-08 02:42:04,783 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-08 02:42:04,783 - 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-12-08 02:42:06,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.145': '0', '10.20.0.18': '0'}, '10.0.0.129': {'10.20.0.145': '0', '10.20.0.14': '0'}} with 2025-12-08 02:42:06,047 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:42:06,048 - INFO - 2025-12-08 02:42:06,759 - DEBUG - Response for create_network : {'network': {'id': '41f25283-4f0c-4ef3-b814-e388c18121a7', 'name': 'ctest-vn-51249754', 'tenant_id': '8752421ea23346e4bef4eb07631eda6b', 'project_id': '8752421ea23346e4bef4eb07631eda6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-vn-51249754'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:42:06,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec6fc23c-3f05-42ff-877a-a2e1a3fcb295', 'name': '', 'tenant_id': '8752421ea23346e4bef4eb07631eda6b', 'network_id': '41f25283-4f0c-4ef3-b814-e388c18121a7', 'ip_version': 4, 'cidr': '93.183.155.192/26', 'allocation_pools': [{'start': '93.183.155.194', 'end': '93.183.155.254'}], 'gateway_ip': '93.183.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.183.155.194', 'tags': [], 'project_id': '8752421ea23346e4bef4eb07631eda6b'}} 2025-12-08 02:42:07,001 - INFO - Created VN ctest-vn-51249754 2025-12-08 02:42:07,015 - DEBUG - VN ctest-vn-51249754 UUID is 41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:07,396 - DEBUG - Response for create_network : {'network': {'id': '70076684-ddaf-40a4-b87a-bc2c1b41f79d', 'name': 'ctest-vn-12591053', 'tenant_id': '8752421ea23346e4bef4eb07631eda6b', 'project_id': '8752421ea23346e4bef4eb07631eda6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-vn-12591053'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:42:07,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '9566ce39-01b4-44c9-8f6a-25cf4988bf95', 'name': '', 'tenant_id': '8752421ea23346e4bef4eb07631eda6b', 'network_id': '70076684-ddaf-40a4-b87a-bc2c1b41f79d', 'ip_version': 4, 'cidr': '100.140.106.128/26', 'allocation_pools': [{'start': '100.140.106.130', 'end': '100.140.106.190'}], 'gateway_ip': '100.140.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.140.106.130', 'tags': [], 'project_id': '8752421ea23346e4bef4eb07631eda6b'}} 2025-12-08 02:42:07,699 - INFO - Created VN ctest-vn-12591053 2025-12-08 02:42:07,712 - DEBUG - VN ctest-vn-12591053 UUID is 70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:07,782 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754, 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-07771647:ctest-vn-12591053, 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-12-08 02:42:08,086 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41f25283-4f0c-4ef3-b814-e388c18121a7', 'name': 'ctest-vn-51249754', 'tenant_id': '8752421ea23346e4bef4eb07631eda6b', 'project_id': '8752421ea23346e4bef4eb07631eda6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec6fc23c-3f05-42ff-877a-a2e1a3fcb295'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-vn-51249754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-policy-allow-all-50694295']], 'subnet_ipam': [{'subnet_cidr': '93.183.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:42:08,287 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70076684-ddaf-40a4-b87a-bc2c1b41f79d', 'name': 'ctest-vn-12591053', 'tenant_id': '8752421ea23346e4bef4eb07631eda6b', 'project_id': '8752421ea23346e4bef4eb07631eda6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9566ce39-01b4-44c9-8f6a-25cf4988bf95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-vn-12591053'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-policy-allow-all-50694295']], 'subnet_ipam': [{'subnet_cidr': '100.140.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:42:08,400 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:42:08,756 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:42:08,793 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:42:08,810 - DEBUG - Requesting: http://10.0.0.23:8082/project/8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:42:08,912 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:08,926 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:08,936 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/66235d66-243a-4cb5-8eff-bdf41aa94a0d 2025-12-08 02:42:08,944 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/66235d66-243a-4cb5-8eff-bdf41aa94a0d 2025-12-08 02:42:08,951 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eda5deca-efd4-4a2b-a419-3f56af0f4c2c 2025-12-08 02:42:08,957 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:42:08,957 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:08,967 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/66235d66-243a-4cb5-8eff-bdf41aa94a0d 2025-12-08 02:42:08,987 - INFO - Verified VN network id 14 for VN 41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:08,987 - INFO - Verifications in API Server for VN ctest-vn-51249754 passed 2025-12-08 02:42:08,987 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:09,001 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/66235d66-243a-4cb5-8eff-bdf41aa94a0d 2025-12-08 02:42:09,011 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/66235d66-243a-4cb5-8eff-bdf41aa94a0d 2025-12-08 02:42:09,020 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eda5deca-efd4-4a2b-a419-3f56af0f4c2c 2025-12-08 02:42:09,035 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07771647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4751951280749694707', 'uuid-lslong': '13264476979014476199'}, 'enable': 'true', 'created': '2025-12-08T02:42:06', 'last-modified': '2025-12-08T02:42:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985164'} 2025-12-08 02:42:09,044 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:42:09,050 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07771647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4751951280749694707', 'uuid-lslong': '13264476979014476199'}, 'enable': 'true', 'created': '2025-12-08T02:42:06', 'last-modified': '2025-12-08T02:42:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990908'} 2025-12-08 02:42:09,056 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:42:09,061 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07771647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4751951280749694707', 'uuid-lslong': '13264476979014476199'}, 'enable': 'true', 'created': '2025-12-08T02:42:06', 'last-modified': '2025-12-08T02:42:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008688'} 2025-12-08 02:42:09,068 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:42:09,068 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51249754 passed 2025-12-08 02:42:09,068 - DEBUG - ====Verifying policy data for ctest-vn-51249754 in API_Server ====== 2025-12-08 02:42:09,068 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:42:09,074 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:42:09,088 - DEBUG - Requesting: http://10.0.0.23:8082/project/8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:42:09,191 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41f25283-4f0c-4ef3-b814-e388c18121a7 2025-12-08 02:42:09,205 - DEBUG - ==>Verifying data for policy with id: a0fec503-1e48-4741-92b4-1e201924ba35, fqn: ['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-policy-allow-all-50694295'] 2025-12-08 02:42:09,205 - INFO - VN ctest-vn-51249754 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 02:42:09,205 - DEBUG - Verifying the vn in opserver 2025-12-08 02:42:09,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 virtual network link through opserver 10.0.0.23 2025-12-08 02:42:09,206 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-08 02:42:09,546 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-08 02:42:09,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754?flat'} 2025-12-08 02:42:09,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 virtual network link through opserver 10.0.0.22 2025-12-08 02:42:09,621 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 02:42:09,960 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 02:42:10,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754?flat'} 2025-12-08 02:42:10,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 virtual network link through opserver 10.0.0.65 2025-12-08 02:42:10,364 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-08 02:42:10,776 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-08 02:42:11,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754?flat'} 2025-12-08 02:42:11,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is found in opserver 2025-12-08 02:42:11,202 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 02:42:11,212 - DEBUG - VRF ids for VN ctest-vn-51249754: {} 2025-12-08 02:42:11,212 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:42:11,219 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:42:11,233 - DEBUG - Requesting: http://10.0.0.23:8082/project/8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:42:11,348 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:11,364 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:11,375 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce6a0854-d1f0-4108-b9ad-cba265de3905 2025-12-08 02:42:11,383 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce6a0854-d1f0-4108-b9ad-cba265de3905 2025-12-08 02:42:11,390 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/8e557bdf-8375-480c-9491-76628b2f8992 2025-12-08 02:42:11,397 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-08 02:42:11,397 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:11,405 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce6a0854-d1f0-4108-b9ad-cba265de3905 2025-12-08 02:42:11,426 - INFO - Verified VN network id 15 for VN 70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:11,427 - INFO - Verifications in API Server for VN ctest-vn-12591053 passed 2025-12-08 02:42:11,427 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:11,439 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce6a0854-d1f0-4108-b9ad-cba265de3905 2025-12-08 02:42:11,447 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce6a0854-d1f0-4108-b9ad-cba265de3905 2025-12-08 02:42:11,455 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/8e557bdf-8375-480c-9491-76628b2f8992 2025-12-08 02:42:11,473 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07771647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8072533577925869732', 'uuid-lslong': '13293144147759331229'}, 'enable': 'true', 'created': '2025-12-08T02:42:07', 'last-modified': '2025-12-08T02:42:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.222834'} 2025-12-08 02:42:11,480 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-08 02:42:11,485 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07771647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8072533577925869732', 'uuid-lslong': '13293144147759331229'}, 'enable': 'true', 'created': '2025-12-08T02:42:07', 'last-modified': '2025-12-08T02:42:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.231433'} 2025-12-08 02:42:11,491 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-08 02:42:11,498 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07771647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8072533577925869732', 'uuid-lslong': '13293144147759331229'}, 'enable': 'true', 'created': '2025-12-08T02:42:07', 'last-modified': '2025-12-08T02:42:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.245617'} 2025-12-08 02:42:11,503 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-08 02:42:11,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12591053 passed 2025-12-08 02:42:11,504 - DEBUG - ====Verifying policy data for ctest-vn-12591053 in API_Server ====== 2025-12-08 02:42:11,504 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:42:11,509 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:42:11,520 - DEBUG - Requesting: http://10.0.0.23:8082/project/8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:42:11,610 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70076684-ddaf-40a4-b87a-bc2c1b41f79d 2025-12-08 02:42:11,620 - DEBUG - ==>Verifying data for policy with id: a0fec503-1e48-4741-92b4-1e201924ba35, fqn: ['default-domain', 'ctest-TestBasicPolicy-07771647', 'ctest-policy-allow-all-50694295'] 2025-12-08 02:42:11,620 - INFO - VN ctest-vn-12591053 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 02:42:11,621 - DEBUG - Verifying the vn in opserver 2025-12-08 02:42:11,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053 virtual network link through opserver 10.0.0.23 2025-12-08 02:42:11,621 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-08 02:42:11,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053?flat'} 2025-12-08 02:42:11,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053 virtual network link through opserver 10.0.0.22 2025-12-08 02:42:11,690 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 02:42:11,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053?flat'} 2025-12-08 02:42:11,757 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053 virtual network link through opserver 10.0.0.65 2025-12-08 02:42:11,757 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-08 02:42:11,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053?flat'} 2025-12-08 02:42:11,853 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-12591053 is found in opserver 2025-12-08 02:42:11,875 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 02:42:11,886 - DEBUG - VRF ids for VN ctest-vn-12591053: {} 2025-12-08 02:42:11,947 - DEBUG - Services list from nova: [, , , ] 2025-12-08 02:42:13,128 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4854-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4854-2) 2025-12-08 02:42:14,483 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4854-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4854-1) 2025-12-08 02:42:14,484 - INFO - Waiting for VM ctest-TestBasicPolicy-07771647-81904702 to be up.. 2025-12-08 02:42:14,593 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-08 02:42:19,680 - DEBUG - VM is in ACTIVE state now 2025-12-08 02:42:19,681 - INFO - VM name : ctest-TestBasicPolicy-07771647-81904702 2025-12-08 02:42:19,759 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 ID is 5d23d8f3-c8d8-43ed-a250-ccba52d30717 2025-12-08 02:42:19,785 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 launched on Node an-jenkins-deploy-platform-ansible-os-4854-2 2025-12-08 02:42:19,892 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/5d23d8f3-c8d8-43ed-a250-ccba52d30717 2025-12-08 02:42:20,255 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/5d23d8f3-c8d8-43ed-a250-ccba52d30717 2025-12-08 02:42:20,292 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/85343070-b7dc-4e7c-b97a-3b1b8ceaa75b 2025-12-08 02:42:23,482 - 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 1034ms') 2025-12-08 02:42:23,482 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:23,495 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:27,585 - 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 1017ms') 2025-12-08 02:42:27,585 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:27,601 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:31,679 - 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') 2025-12-08 02:42:31,679 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:31,691 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:35,771 - 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-12-08 02:42:35,771 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:35,786 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:39,874 - 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') 2025-12-08 02:42:39,874 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:39,889 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:43,970 - 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 1014ms') 2025-12-08 02:42:43,971 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:43,985 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:48,058 - 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 1015ms') 2025-12-08 02:42:48,058 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:48,073 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:52,160 - 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') 2025-12-08 02:42:52,160 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 failed! 2025-12-08 02:42:52,175 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07771647:ctest-vn-51249754 is 93.183.155.193 and allocation pool is NOT set 2025-12-08 02:42:54,235 - 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.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.48 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.484/4.687/6.891/2.203 ms') 2025-12-08 02:42:54,236 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-81904702 passed 2025-12-08 02:42:54,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:42:54,310 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07771647-81904702, IP 93.183.155.195, Port 22 2025-12-08 02:42:54,378 - DEBUG - Error on ssh to ubuntu@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-12-08 02:42:54,461 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-08 02:42:59,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:42:59,462 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07771647-81904702, IP 93.183.155.195, Port 22 2025-12-08 02:42:59,530 - DEBUG - Error on ssh to ubuntu@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-12-08 02:42:59,607 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-08 02:43:04,608 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:43:04,608 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07771647-81904702, IP 93.183.155.195, Port 22 2025-12-08 02:43:04,674 - DEBUG - Error on ssh to ubuntu@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-12-08 02:43:04,763 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-08 02:43:09,763 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:43:09,763 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07771647-81904702, IP 93.183.155.195, Port 22 2025-12-08 02:43:09,820 - DEBUG - Error on ssh to ubuntu@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-12-08 02:43:09,906 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-08 02:43:14,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:43:14,907 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07771647-81904702, IP 93.183.155.195, Port 22 2025-12-08 02:43:15,078 - DEBUG - VM ctest-TestBasicPolicy-07771647-81904702 is ready for SSH connections 2025-12-08 02:43:15,078 - INFO - Waiting for VM ctest-TestBasicPolicy-07771647-69244962 to be up.. 2025-12-08 02:43:15,175 - DEBUG - VM is in ACTIVE state now 2025-12-08 02:43:15,175 - INFO - VM name : ctest-TestBasicPolicy-07771647-69244962 2025-12-08 02:43:15,248 - DEBUG - VM ctest-TestBasicPolicy-07771647-69244962 ID is fd9c9334-a098-4b53-9625-90f624e14bc5 2025-12-08 02:43:15,248 - DEBUG - VM ctest-TestBasicPolicy-07771647-69244962 launched on Node an-jenkins-deploy-platform-ansible-os-4854-1 2025-12-08 02:43:15,324 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/fd9c9334-a098-4b53-9625-90f624e14bc5 2025-12-08 02:43:15,333 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/c35d87f6-87fa-43ab-a5d2-27f93e1c2536 2025-12-08 02:43:16,498 - 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=1.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.74 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 = 1.668/2.206/2.744/0.538 ms') 2025-12-08 02:43:16,498 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07771647-69244962 passed 2025-12-08 02:43:16,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:43:16,570 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07771647-69244962, IP 100.140.106.131, Port 22 2025-12-08 02:43:16,744 - DEBUG - VM ctest-TestBasicPolicy-07771647-69244962 is ready for SSH connections 2025-12-08 02:43:16,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:43:16,744 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 100.140.106.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-12-08 02:43:16,745 - DEBUG - ping -s 56 -c 3 -W 1 100.140.106.131 2025-12-08 02:43:39,507 - DEBUG - PING 100.140.106.131 (100.140.106.131) 56(84) bytes of data. 64 bytes from 100.140.106.131: icmp_req=1 ttl=63 time=5.78 ms 64 bytes from 100.140.106.131: icmp_req=2 ttl=63 time=1.33 ms 64 bytes from 100.140.106.131: icmp_req=3 ttl=63 time=1.14 ms --- 100.140.106.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.141/2.754/5.787/2.146 ms 2025-12-08 02:43:39,508 - INFO - Ping to IP 100.140.106.131 from VM ctest-TestBasicPolicy-07771647-81904702 passed 2025-12-08 02:43:39,697 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a0fec503-1e48-4741-92b4-1e201924ba35", "href": "http://10.0.0.65:8082/network-policy/a0fec503-1e48-4741-92b4-1e201924ba35"}} 2025-12-08 02:43:39,697 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:43:39,697 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 100.140.106.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-12-08 02:43:39,697 - DEBUG - ping -s 56 -c 3 -W 1 100.140.106.131 2025-12-08 02:43:43,577 - DEBUG - PING 100.140.106.131 (100.140.106.131) 56(84) bytes of data. --- 100.140.106.131 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2001ms 2025-12-08 02:43:43,577 - WARNING - Ping to IP 100.140.106.131 from VM ctest-TestBasicPolicy-07771647-81904702 failed 2025-12-08 02:43:43,577 - INFO - Deleting VM ctest-TestBasicPolicy-07771647-69244962 2025-12-08 02:43:43,646 - INFO - Deleting VM ctest-TestBasicPolicy-07771647-81904702 2025-12-08 02:43:44,126 - INFO - Deleted policy ctest-policy-allow-all-50694295 2025-12-08 02:43:44,127 - INFO - Deleting VN ctest-vn-12591053 2025-12-08 02:43:44,187 - DEBUG - VN 70076684-ddaf-40a4-b87a-bc2c1b41f79d still in use: Unable to complete operation on network 70076684-ddaf-40a4-b87a-bc2c1b41f79d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-21a050d4-eba0-4d3a-97ed-ff99f06dc23e'] 2025-12-08 02:43:44,187 - WARNING - Deleting VN ctest-vn-12591053 failed..Will retry 2025-12-08 02:43:46,335 - DEBUG - Response for deleting network () 2025-12-08 02:43:46,335 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce6a0854-d1f0-4108-b9ad-cba265de3905 2025-12-08 02:43:46,341 - DEBUG - Response Code: 404 2025-12-08 02:43:46,342 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:43:46,357 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:43:46,380 - DEBUG - Requesting: http://10.0.0.23:8082/project/8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:43:46,473 - INFO - Validated that VN ctest-vn-12591053 is not found in API Server 2025-12-08 02:43:46,484 - DEBUG - VN ctest-vn-12591053 is not present in Agent 10.0.0.41 2025-12-08 02:43:46,494 - DEBUG - VN ctest-vn-12591053 is not present in Agent 10.0.0.129 2025-12-08 02:43:46,494 - INFO - Validated that VN ctest-vn-12591053 is not in any agent 2025-12-08 02:43:46,523 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12591053 info 2025-12-08 02:43:46,523 - INFO - Deleting VN ctest-vn-51249754 2025-12-08 02:43:46,677 - DEBUG - Response for deleting network () 2025-12-08 02:43:46,677 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/66235d66-243a-4cb5-8eff-bdf41aa94a0d 2025-12-08 02:43:46,684 - DEBUG - Response Code: 404 2025-12-08 02:43:46,684 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:43:46,700 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:43:46,719 - DEBUG - Requesting: http://10.0.0.23:8082/project/8752421e-a233-46e4-bef4-eb07631eda6b 2025-12-08 02:43:46,820 - INFO - Validated that VN ctest-vn-51249754 is not found in API Server 2025-12-08 02:43:46,831 - DEBUG - VN ctest-vn-51249754 is not present in Agent 10.0.0.41 2025-12-08 02:43:46,841 - DEBUG - VN ctest-vn-51249754 is not present in Agent 10.0.0.129 2025-12-08 02:43:46,841 - INFO - Validated that VN ctest-vn-51249754 is not in any agent 2025-12-08 02:43:46,869 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51249754 info 2025-12-08 02:43:48,131 - DEBUG - No XMPP flaps were noticed during the test
2025-12-08 02:43:48,131 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:44]
2025-12-08 02:43:48,131 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:43:48,884 - INFO - Deleted project: ctest-TestBasicPolicy-07771647, ID : 8752421e-a233-46e4-bef4-eb07631eda6b