2025-10-06 02:16:06,854 - INFO - Domain Default found not creating 2025-10-06 02:16:06,999 - INFO - Project ctest-TestBasicPolicy-49156853 not found, creating it 2025-10-06 02:16:07,531 - INFO - Created Project:ctest-TestBasicPolicy-49156853, ID : 7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:16:08,897 - INFO - ================================================================================ 2025-10-06 02:16:08,897 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-06 02:16:08,897 - 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-10-06 02:16:10,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-10-06 02:16:10,162 - INFO - Initial checks done. Running the testcase now 2025-10-06 02:16:10,162 - INFO - 2025-10-06 02:16:10,796 - DEBUG - Response for create_network : {'network': {'id': 'a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a', 'name': 'ctest-vn-89067622', 'tenant_id': '7332689e70d04c89963665163ac86111', 'project_id': '7332689e70d04c89963665163ac86111', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-vn-89067622'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 02:16:11,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '740a6b98-a313-434d-9499-874e8804fcac', 'name': '', 'tenant_id': '7332689e70d04c89963665163ac86111', 'network_id': 'a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a', 'ip_version': 4, 'cidr': '85.59.242.64/26', 'allocation_pools': [{'start': '85.59.242.66', 'end': '85.59.242.126'}], 'gateway_ip': '85.59.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.59.242.66', 'tags': [], 'project_id': '7332689e70d04c89963665163ac86111'}} 2025-10-06 02:16:11,077 - INFO - Created VN ctest-vn-89067622 2025-10-06 02:16:11,090 - DEBUG - VN ctest-vn-89067622 UUID is a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:11,481 - DEBUG - Response for create_network : {'network': {'id': '8a49a29e-cd4d-4585-a327-f7aa8737bbb5', 'name': 'ctest-vn-64696006', 'tenant_id': '7332689e70d04c89963665163ac86111', 'project_id': '7332689e70d04c89963665163ac86111', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-vn-64696006'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 02:16:11,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c1e26d7-b290-4095-a510-d6f4c2350428', 'name': '', 'tenant_id': '7332689e70d04c89963665163ac86111', 'network_id': '8a49a29e-cd4d-4585-a327-f7aa8737bbb5', 'ip_version': 4, 'cidr': '125.43.18.192/26', 'allocation_pools': [{'start': '125.43.18.194', 'end': '125.43.18.254'}], 'gateway_ip': '125.43.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.43.18.194', 'tags': [], 'project_id': '7332689e70d04c89963665163ac86111'}} 2025-10-06 02:16:11,724 - INFO - Created VN ctest-vn-64696006 2025-10-06 02:16:11,737 - DEBUG - VN ctest-vn-64696006 UUID is 8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:11,849 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622, 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-49156853:ctest-vn-64696006, 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-10-06 02:16:12,250 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a', 'name': 'ctest-vn-89067622', 'tenant_id': '7332689e70d04c89963665163ac86111', 'project_id': '7332689e70d04c89963665163ac86111', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['740a6b98-a313-434d-9499-874e8804fcac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-vn-89067622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-policy-allow-all-68065375']], 'subnet_ipam': [{'subnet_cidr': '85.59.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 02:16:12,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a49a29e-cd4d-4585-a327-f7aa8737bbb5', 'name': 'ctest-vn-64696006', 'tenant_id': '7332689e70d04c89963665163ac86111', 'project_id': '7332689e70d04c89963665163ac86111', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c1e26d7-b290-4095-a510-d6f4c2350428'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-vn-64696006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-policy-allow-all-68065375']], 'subnet_ipam': [{'subnet_cidr': '125.43.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 02:16:12,585 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:16:12,931 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:16:12,957 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:16:12,973 - DEBUG - Requesting: http://10.0.0.33:8082/project/7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:16:13,089 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:13,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:13,116 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/487f8d19-aead-4675-ae39-3cc70e4f495c 2025-10-06 02:16:13,123 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/487f8d19-aead-4675-ae39-3cc70e4f495c 2025-10-06 02:16:13,131 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e34dff66-e708-400b-888f-d8c05b97f946 2025-10-06 02:16:13,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:16:13,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:13,152 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/487f8d19-aead-4675-ae39-3cc70e4f495c 2025-10-06 02:16:13,168 - INFO - Verified VN network id 10 for VN a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:13,168 - INFO - Verifications in API Server for VN ctest-vn-89067622 passed 2025-10-06 02:16:13,168 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:13,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/487f8d19-aead-4675-ae39-3cc70e4f495c 2025-10-06 02:16:13,185 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/487f8d19-aead-4675-ae39-3cc70e4f495c 2025-10-06 02:16:13,192 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e34dff66-e708-400b-888f-d8c05b97f946 2025-10-06 02:16:13,206 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49156853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12032952819991855592', 'uuid-lslong': '13306360851090095226'}, 'enable': 'true', 'created': '2025-10-06T02:16:10', 'last-modified': '2025-10-06T02:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014533'} 2025-10-06 02:16:13,212 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:16:13,218 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49156853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12032952819991855592', 'uuid-lslong': '13306360851090095226'}, 'enable': 'true', 'created': '2025-10-06T02:16:10', 'last-modified': '2025-10-06T02:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031835'} 2025-10-06 02:16:13,224 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:16:13,229 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49156853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12032952819991855592', 'uuid-lslong': '13306360851090095226'}, 'enable': 'true', 'created': '2025-10-06T02:16:10', 'last-modified': '2025-10-06T02:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043563'} 2025-10-06 02:16:13,237 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:16:13,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89067622 passed 2025-10-06 02:16:13,237 - DEBUG - ====Verifying policy data for ctest-vn-89067622 in API_Server ====== 2025-10-06 02:16:13,237 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:16:13,243 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:16:13,255 - DEBUG - Requesting: http://10.0.0.33:8082/project/7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:16:13,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6fda2d6-22a6-41e8-b8a9-b0b1a663bc7a 2025-10-06 02:16:13,363 - DEBUG - ==>Verifying data for policy with id: 94129dd5-21d3-4ebc-a4c8-bb081a5f1520, fqn: ['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-policy-allow-all-68065375'] 2025-10-06 02:16:13,363 - INFO - VN ctest-vn-89067622 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 02:16:13,363 - DEBUG - Verifying the vn in opserver 2025-10-06 02:16:13,363 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 virtual network link through opserver 10.0.0.33 2025-10-06 02:16:13,363 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-06 02:16:13,668 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-06 02:16:13,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622?flat'} 2025-10-06 02:16:13,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 virtual network link through opserver 10.0.0.38 2025-10-06 02:16:13,733 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 02:16:14,046 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 02:16:14,108 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622?flat'} 2025-10-06 02:16:14,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 virtual network link through opserver 10.0.0.249 2025-10-06 02:16:14,109 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-06 02:16:14,410 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-06 02:16:14,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622?flat'} 2025-10-06 02:16:14,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is found in opserver 2025-10-06 02:16:14,483 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 02:16:14,491 - DEBUG - VRF ids for VN ctest-vn-89067622: {} 2025-10-06 02:16:14,491 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:16:14,497 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:16:14,507 - DEBUG - Requesting: http://10.0.0.33:8082/project/7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:16:14,624 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:14,642 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:14,655 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd195217-6527-4fbd-bb56-f8c2bf0da478 2025-10-06 02:16:14,674 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd195217-6527-4fbd-bb56-f8c2bf0da478 2025-10-06 02:16:14,683 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9921929f-b25b-4a66-b0a1-2bacddbd0597 2025-10-06 02:16:14,691 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-06 02:16:14,691 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:14,700 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd195217-6527-4fbd-bb56-f8c2bf0da478 2025-10-06 02:16:14,714 - INFO - Verified VN network id 11 for VN 8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:14,714 - INFO - Verifications in API Server for VN ctest-vn-64696006 passed 2025-10-06 02:16:14,715 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:14,725 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd195217-6527-4fbd-bb56-f8c2bf0da478 2025-10-06 02:16:14,731 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd195217-6527-4fbd-bb56-f8c2bf0da478 2025-10-06 02:16:14,738 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9921929f-b25b-4a66-b0a1-2bacddbd0597 2025-10-06 02:16:14,750 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49156853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9964674453466858885', 'uuid-lslong': '11756637664059046837'}, 'enable': 'true', 'created': '2025-10-06T02:16:11', 'last-modified': '2025-10-06T02:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.314399'} 2025-10-06 02:16:14,759 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-06 02:16:14,765 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49156853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9964674453466858885', 'uuid-lslong': '11756637664059046837'}, 'enable': 'true', 'created': '2025-10-06T02:16:11', 'last-modified': '2025-10-06T02:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.317624'} 2025-10-06 02:16:14,771 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-06 02:16:14,776 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49156853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9964674453466858885', 'uuid-lslong': '11756637664059046837'}, 'enable': 'true', 'created': '2025-10-06T02:16:11', 'last-modified': '2025-10-06T02:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.338753'} 2025-10-06 02:16:14,781 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-06 02:16:14,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64696006 passed 2025-10-06 02:16:14,781 - DEBUG - ====Verifying policy data for ctest-vn-64696006 in API_Server ====== 2025-10-06 02:16:14,781 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:16:14,787 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:16:14,797 - DEBUG - Requesting: http://10.0.0.33:8082/project/7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:16:14,895 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8a49a29e-cd4d-4585-a327-f7aa8737bbb5 2025-10-06 02:16:14,905 - DEBUG - ==>Verifying data for policy with id: 94129dd5-21d3-4ebc-a4c8-bb081a5f1520, fqn: ['default-domain', 'ctest-TestBasicPolicy-49156853', 'ctest-policy-allow-all-68065375'] 2025-10-06 02:16:14,905 - INFO - VN ctest-vn-64696006 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 02:16:14,906 - DEBUG - Verifying the vn in opserver 2025-10-06 02:16:14,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006 virtual network link through opserver 10.0.0.33 2025-10-06 02:16:14,906 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-06 02:16:14,954 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006?flat'} 2025-10-06 02:16:14,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006 virtual network link through opserver 10.0.0.38 2025-10-06 02:16:14,954 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 02:16:15,008 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006?flat'} 2025-10-06 02:16:15,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006 virtual network link through opserver 10.0.0.249 2025-10-06 02:16:15,008 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-06 02:16:15,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006?flat'} 2025-10-06 02:16:15,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-64696006 is found in opserver 2025-10-06 02:16:15,087 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 02:16:15,096 - DEBUG - VRF ids for VN ctest-vn-64696006: {} 2025-10-06 02:16:15,171 - DEBUG - Services list from nova: [, , , ] 2025-10-06 02:16:16,296 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4219-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4219-1) 2025-10-06 02:16:17,570 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4219-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4219-2) 2025-10-06 02:16:17,571 - INFO - Waiting for VM ctest-TestBasicPolicy-49156853-44784989 to be up.. 2025-10-06 02:16:17,656 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-06 02:16:22,732 - DEBUG - VM is in ACTIVE state now 2025-10-06 02:16:22,732 - INFO - VM name : ctest-TestBasicPolicy-49156853-44784989 2025-10-06 02:16:22,803 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 ID is fe17cb45-fb82-47e5-ad0d-1b3ad3a73488 2025-10-06 02:16:22,826 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 launched on Node an-jenkins-deploy-platform-ansible-os-4219-1 2025-10-06 02:16:22,900 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/fe17cb45-fb82-47e5-ad0d-1b3ad3a73488 2025-10-06 02:16:23,189 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/fe17cb45-fb82-47e5-ad0d-1b3ad3a73488 2025-10-06 02:16:23,219 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/49e85cfe-be4c-49ff-b83f-28ba6bd86a1f 2025-10-06 02:16:26,376 - 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 1002ms') 2025-10-06 02:16:26,376 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:26,392 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:30,473 - 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 1018ms') 2025-10-06 02:16:30,473 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:30,487 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:34,569 - 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 1024ms') 2025-10-06 02:16:34,569 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:34,583 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:38,668 - 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-10-06 02:16:38,668 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:38,681 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:42,766 - 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 1021ms') 2025-10-06 02:16:42,766 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:42,780 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:46,858 - 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-10-06 02:16:46,858 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:46,874 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:50,954 - 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 1016ms') 2025-10-06 02:16:50,954 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 failed! 2025-10-06 02:16:50,969 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49156853:ctest-vn-89067622 is 85.59.242.65 and allocation pool is NOT set 2025-10-06 02:16:55,057 - 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=2 ttl=63 time=5.65 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1022ms\r\nrtt min/avg/max/mdev = 5.654/5.654/5.654/0.000 ms') 2025-10-06 02:16:55,057 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-44784989 passed 2025-10-06 02:16:55,126 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:16:55,126 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49156853-44784989, IP 85.59.242.67, Port 22 2025-10-06 02:16:55,182 - 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-10-06 02:16:55,258 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-06 02:17:00,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:00,258 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49156853-44784989, IP 85.59.242.67, Port 22 2025-10-06 02:17:00,324 - 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-10-06 02:17:00,400 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-06 02:17:05,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:05,400 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49156853-44784989, IP 85.59.242.67, Port 22 2025-10-06 02:17:05,469 - 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-10-06 02:17:05,563 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-06 02:17:10,564 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:10,564 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49156853-44784989, IP 85.59.242.67, Port 22 2025-10-06 02:17:10,629 - 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-10-06 02:17:10,704 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-06 02:17:15,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:15,705 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49156853-44784989, IP 85.59.242.67, Port 22 2025-10-06 02:17:15,876 - DEBUG - VM ctest-TestBasicPolicy-49156853-44784989 is ready for SSH connections 2025-10-06 02:17:15,876 - INFO - Waiting for VM ctest-TestBasicPolicy-49156853-41957890 to be up.. 2025-10-06 02:17:15,950 - DEBUG - VM is in ACTIVE state now 2025-10-06 02:17:15,950 - INFO - VM name : ctest-TestBasicPolicy-49156853-41957890 2025-10-06 02:17:16,023 - DEBUG - VM ctest-TestBasicPolicy-49156853-41957890 ID is c6a38ce5-610c-414c-af19-e4c63887eb91 2025-10-06 02:17:16,023 - DEBUG - VM ctest-TestBasicPolicy-49156853-41957890 launched on Node an-jenkins-deploy-platform-ansible-os-4219-2 2025-10-06 02:17:16,096 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/c6a38ce5-610c-414c-af19-e4c63887eb91 2025-10-06 02:17:16,105 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/78cc61ed-7f68-48ff-9d6e-873747e121dc 2025-10-06 02:17:17,264 - 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.62 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.518 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.518/2.067/3.616/1.549 ms') 2025-10-06 02:17:17,264 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49156853-41957890 passed 2025-10-06 02:17:17,330 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:17,330 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49156853-41957890, IP 125.43.18.195, Port 22 2025-10-06 02:17:17,497 - DEBUG - VM ctest-TestBasicPolicy-49156853-41957890 is ready for SSH connections 2025-10-06 02:17:17,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:17,497 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.43.18.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-10-06 02:17:17,497 - DEBUG - ping -s 56 -c 3 -W 1 125.43.18.195 2025-10-06 02:17:36,273 - DEBUG - PING 125.43.18.195 (125.43.18.195) 56(84) bytes of data. 64 bytes from 125.43.18.195: icmp_req=1 ttl=63 time=11.1 ms 64 bytes from 125.43.18.195: icmp_req=2 ttl=63 time=1.29 ms 64 bytes from 125.43.18.195: icmp_req=3 ttl=63 time=1.27 ms --- 125.43.18.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.278/4.585/11.179/4.662 ms 2025-10-06 02:17:36,274 - INFO - Ping to IP 125.43.18.195 from VM ctest-TestBasicPolicy-49156853-44784989 passed 2025-10-06 02:17:36,477 - DEBUG - Policy Update Response {"network-policy": {"uuid": "94129dd5-21d3-4ebc-a4c8-bb081a5f1520", "href": "http://10.0.0.249:8082/network-policy/94129dd5-21d3-4ebc-a4c8-bb081a5f1520"}} 2025-10-06 02:17:36,477 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-06 02:17:36,477 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.43.18.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-10-06 02:17:36,477 - DEBUG - ping -s 56 -c 3 -W 1 125.43.18.195 2025-10-06 02:17:39,921 - DEBUG - PING 125.43.18.195 (125.43.18.195) 56(84) bytes of data. 64 bytes from 125.43.18.195: icmp_req=1 ttl=63 time=3.69 ms --- 125.43.18.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 3.693/3.693/3.693/0.000 ms 2025-10-06 02:17:39,921 - WARNING - Ping to IP 125.43.18.195 from VM ctest-TestBasicPolicy-49156853-44784989 failed 2025-10-06 02:17:39,922 - INFO - Deleting VM ctest-TestBasicPolicy-49156853-41957890 2025-10-06 02:17:39,985 - INFO - Deleting VM ctest-TestBasicPolicy-49156853-44784989 2025-10-06 02:17:40,462 - INFO - Deleted policy ctest-policy-allow-all-68065375 2025-10-06 02:17:40,463 - INFO - Deleting VN ctest-vn-64696006 2025-10-06 02:17:40,513 - DEBUG - VN 8a49a29e-cd4d-4585-a327-f7aa8737bbb5 still in use: Unable to complete operation on network 8a49a29e-cd4d-4585-a327-f7aa8737bbb5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9eb0feff-d5db-4d75-ab30-5108824bac9e'] 2025-10-06 02:17:40,514 - WARNING - Deleting VN ctest-vn-64696006 failed..Will retry 2025-10-06 02:17:42,679 - DEBUG - Response for deleting network () 2025-10-06 02:17:42,679 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd195217-6527-4fbd-bb56-f8c2bf0da478 2025-10-06 02:17:42,686 - DEBUG - Response Code: 404 2025-10-06 02:17:42,686 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:17:42,692 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:17:42,749 - DEBUG - Requesting: http://10.0.0.33:8082/project/7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:17:42,839 - INFO - Validated that VN ctest-vn-64696006 is not found in API Server 2025-10-06 02:17:42,851 - DEBUG - VN ctest-vn-64696006 is not present in Agent 10.0.0.49 2025-10-06 02:17:42,859 - DEBUG - VN ctest-vn-64696006 is not present in Agent 10.0.0.19 2025-10-06 02:17:42,860 - INFO - Validated that VN ctest-vn-64696006 is not in any agent 2025-10-06 02:17:42,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64696006 info 2025-10-06 02:17:42,889 - INFO - Deleting VN ctest-vn-89067622 2025-10-06 02:17:43,060 - DEBUG - Response for deleting network () 2025-10-06 02:17:43,060 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/487f8d19-aead-4675-ae39-3cc70e4f495c 2025-10-06 02:17:43,065 - DEBUG - Response Code: 404 2025-10-06 02:17:43,065 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:17:43,070 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:17:43,098 - DEBUG - Requesting: http://10.0.0.33:8082/project/7332689e-70d0-4c89-9636-65163ac86111 2025-10-06 02:17:43,186 - INFO - Validated that VN ctest-vn-89067622 is not found in API Server 2025-10-06 02:17:43,196 - DEBUG - VN ctest-vn-89067622 is not present in Agent 10.0.0.49 2025-10-06 02:17:43,205 - DEBUG - VN ctest-vn-89067622 is not present in Agent 10.0.0.19 2025-10-06 02:17:43,205 - INFO - Validated that VN ctest-vn-89067622 is not in any agent 2025-10-06 02:17:43,233 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89067622 info 2025-10-06 02:17:44,489 - DEBUG - No XMPP flaps were noticed during the test 2025-10-06 02:17:44,489 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:36] 2025-10-06 02:17:44,489 - INFO - -------------------------------------------------------------------------------- 2025-10-06 02:17:45,180 - INFO - Deleted project: ctest-TestBasicPolicy-49156853, ID : 7332689e-70d0-4c89-9636-65163ac86111