2025-02-06 20:28:25,511 - INFO - Domain Default found not creating
2025-02-06 20:28:25,650 - INFO - Project ctest-TestBasicPolicy-65325817 not found, creating it
2025-02-06 20:28:26,099 - INFO - Created Project:ctest-TestBasicPolicy-65325817, ID : 06dc7175-380f-49a6-9d12-d6b49db8b4b3
2025-02-06 20:28:27,642 - INFO - ================================================================================
2025-02-06 20:28:27,642 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 20:28:27,642 - 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-02-06 20:28:27,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.10': '0'}} with
2025-02-06 20:28:27,900 - INFO - Initial checks done. Running the testcase now
2025-02-06 20:28:27,900 - INFO -
2025-02-06 20:28:28,496 - DEBUG - Response for create_network : {'network': {'id': '15cb8743-33f4-4679-ae9e-f6a8dc2755ab', 'name': 'ctest-vn-27128480', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-27128480'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 20:28:28,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bc82118-9696-4c82-bfb3-939bcf36858e', 'name': '', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'network_id': '15cb8743-33f4-4679-ae9e-f6a8dc2755ab', 'ip_version': 4, 'cidr': '165.91.20.64/26', 'allocation_pools': [{'start': '165.91.20.66', 'end': '165.91.20.126'}], 'gateway_ip': '165.91.20.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.91.20.66', 'tags': [], 'project_id': '06dc7175380f49a69d12d6b49db8b4b3'}}
2025-02-06 20:28:28,710 - INFO - Created VN ctest-vn-27128480
2025-02-06 20:28:28,762 - DEBUG - VN ctest-vn-27128480 UUID is 15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:29,100 - DEBUG - Response for create_network : {'network': {'id': '75cf9c08-14b4-4327-b117-47abda8940a3', 'name': 'ctest-vn-76261692', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-76261692'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 20:28:29,280 - DEBUG - Response for create_subnet : {'subnet': {'id': '0940e9b3-6f9b-4f3b-a260-2b53074584bc', 'name': '', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'network_id': '75cf9c08-14b4-4327-b117-47abda8940a3', 'ip_version': 4, 'cidr': '7.152.241.192/26', 'allocation_pools': [{'start': '7.152.241.194', 'end': '7.152.241.254'}], 'gateway_ip': '7.152.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.152.241.194', 'tags': [], 'project_id': '06dc7175380f49a69d12d6b49db8b4b3'}}
2025-02-06 20:28:29,298 - INFO - Created VN ctest-vn-76261692
2025-02-06 20:28:29,350 - DEBUG - VN ctest-vn-76261692 UUID is 75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:29,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480, 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-65325817:ctest-vn-76261692, 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-02-06 20:28:29,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15cb8743-33f4-4679-ae9e-f6a8dc2755ab', 'name': 'ctest-vn-27128480', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bc82118-9696-4c82-bfb3-939bcf36858e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-27128480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277']], 'subnet_ipam': [{'subnet_cidr': '165.91.20.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 20:28:30,043 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75cf9c08-14b4-4327-b117-47abda8940a3', 'name': 'ctest-vn-76261692', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0940e9b3-6f9b-4f3b-a260-2b53074584bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-76261692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277']], 'subnet_ipam': [{'subnet_cidr': '7.152.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 20:28:30,194 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-02-06 20:28:30,533 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-02-06 20:28:30,562 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e
2025-02-06 20:28:30,576 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3
2025-02-06 20:28:30,651 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:30,663 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:30,674 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d
2025-02-06 20:28:30,683 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d
2025-02-06 20:28:30,689 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/90ef03c7-758f-4638-a9a3-c77c768f4146
2025-02-06 20:28:30,695 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 20:28:30,695 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:30,708 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d
2025-02-06 20:28:30,722 - INFO - Verified VN network id 8 for VN 15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:30,722 - INFO - Verifications in API Server for VN ctest-vn-27128480 passed
2025-02-06 20:28:30,722 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:30,732 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d
2025-02-06 20:28:30,739 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d
2025-02-06 20:28:30,745 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/90ef03c7-758f-4638-a9a3-c77c768f4146
2025-02-06 20:28:30,758 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65325817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1570497617772955257', 'uuid-lslong': '12582765614028248491'}, 'enable': 'true', 'created': '2025-02-06T20:28:28', 'last-modified': '2025-02-06T20:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020918'}
2025-02-06 20:28:30,766 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 20:28:30,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27128480 passed
2025-02-06 20:28:30,766 - DEBUG - ====Verifying policy data for ctest-vn-27128480 in API_Server ======
2025-02-06 20:28:30,766 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-02-06 20:28:30,772 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e
2025-02-06 20:28:30,784 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3
2025-02-06 20:28:30,856 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab
2025-02-06 20:28:30,868 - DEBUG - ==>Verifying data for policy with id: f6ec0f70-3f80-47ab-88dd-a6cf89c9f6f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277']
2025-02-06 20:28:30,868 - INFO - VN ctest-vn-27128480 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 20:28:30,868 - DEBUG - Verifying the vn in opserver
2025-02-06 20:28:30,868 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480 virtual network link through opserver 10.0.0.34
2025-02-06 20:28:30,868 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-02-06 20:28:31,198 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-02-06 20:28:31,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480?flat'}
2025-02-06 20:28:31,252 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480 is found in opserver
2025-02-06 20:28:31,263 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 20:28:31,269 - DEBUG - VRF ids for VN ctest-vn-27128480: {}
2025-02-06 20:28:31,269 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-02-06 20:28:31,275 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e
2025-02-06 20:28:31,286 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3
2025-02-06 20:28:31,355 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:31,368 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:31,378 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724
2025-02-06 20:28:31,384 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724
2025-02-06 20:28:31,391 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5aa130e1-8c72-4452-9b12-c6e718654ce5
2025-02-06 20:28:31,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 20:28:31,397 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:31,406 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724
2025-02-06 20:28:31,420 - INFO - Verified VN network id 9 for VN 75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:31,420 - INFO - Verifications in API Server for VN ctest-vn-76261692 passed
2025-02-06 20:28:31,420 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:31,430 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724
2025-02-06 20:28:31,437 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724
2025-02-06 20:28:31,443 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5aa130e1-8c72-4452-9b12-c6e718654ce5
2025-02-06 20:28:31,455 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65325817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8489175381137703719', 'uuid-lslong': '12760746872608997539'}, 'enable': 'true', 'created': '2025-02-06T20:28:29', 'last-modified': '2025-02-06T20:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478271'}
2025-02-06 20:28:31,462 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 20:28:31,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76261692 passed
2025-02-06 20:28:31,462 - DEBUG - ====Verifying policy data for ctest-vn-76261692 in API_Server ======
2025-02-06 20:28:31,462 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-02-06 20:28:31,467 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e
2025-02-06 20:28:31,479 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3
2025-02-06 20:28:31,555 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3
2025-02-06 20:28:31,565 - DEBUG - ==>Verifying data for policy with id: f6ec0f70-3f80-47ab-88dd-a6cf89c9f6f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277']
2025-02-06 20:28:31,565 - INFO - VN ctest-vn-76261692 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 20:28:31,565 - DEBUG - Verifying the vn in opserver
2025-02-06 20:28:31,565 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692 virtual network link through opserver 10.0.0.34
2025-02-06 20:28:31,566 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-02-06 20:28:31,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692?flat'}
2025-02-06 20:28:31,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692 is found in opserver
2025-02-06 20:28:31,587 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 20:28:31,593 - DEBUG - VRF ids for VN ctest-vn-76261692: {}
2025-02-06 20:28:31,649 - DEBUG - Services list from nova: [