2025-02-20 02:23:47,883 - INFO - Domain Default found not creating
2025-02-20 02:23:48,039 - INFO - Project ctest-TestBasicPolicy-19699624 not found, creating it
2025-02-20 02:23:48,522 - INFO - Created Project:ctest-TestBasicPolicy-19699624, ID : 10d37f19-f463-494d-b0d9-0130d37c6eab
2025-02-20 02:23:49,995 - INFO - ================================================================================
2025-02-20 02:23:49,996 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-20 02:23:49,996 - 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-20 02:23:50,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.18': '0'}} with
2025-02-20 02:23:50,252 - INFO - Initial checks done. Running the testcase now
2025-02-20 02:23:50,252 - INFO -
2025-02-20 02:23:50,826 - DEBUG - Response for create_network : {'network': {'id': 'c6dd6f46-64d7-4eaf-9088-a15248677c60', 'name': 'ctest-vn-48534716', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-48534716'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:23:50,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c550d6cd-65ac-4e13-957c-f8b962fffa0c', 'name': '', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'network_id': 'c6dd6f46-64d7-4eaf-9088-a15248677c60', 'ip_version': 4, 'cidr': '167.24.131.0/26', 'allocation_pools': [{'start': '167.24.131.2', 'end': '167.24.131.62'}], 'gateway_ip': '167.24.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.24.131.2', 'tags': [], 'project_id': '10d37f19f463494db0d90130d37c6eab'}}
2025-02-20 02:23:51,020 - INFO - Created VN ctest-vn-48534716
2025-02-20 02:23:51,074 - DEBUG - VN ctest-vn-48534716 UUID is c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:51,400 - DEBUG - Response for create_network : {'network': {'id': '8f170772-dc88-40cd-8611-bdbdc7792509', 'name': 'ctest-vn-94140261', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-94140261'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:23:51,614 - DEBUG - Response for create_subnet : {'subnet': {'id': '193e3be9-05e3-468d-a805-ad01b0994887', 'name': '', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'network_id': '8f170772-dc88-40cd-8611-bdbdc7792509', 'ip_version': 4, 'cidr': '156.230.188.128/26', 'allocation_pools': [{'start': '156.230.188.130', 'end': '156.230.188.190'}], 'gateway_ip': '156.230.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.230.188.130', 'tags': [], 'project_id': '10d37f19f463494db0d90130d37c6eab'}}
2025-02-20 02:23:51,632 - INFO - Created VN ctest-vn-94140261
2025-02-20 02:23:51,686 - DEBUG - VN ctest-vn-94140261 UUID is 8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:51,803 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716, 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-19699624:ctest-vn-94140261, 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-20 02:23:52,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6dd6f46-64d7-4eaf-9088-a15248677c60', 'name': 'ctest-vn-48534716', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c550d6cd-65ac-4e13-957c-f8b962fffa0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-48534716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337']], 'subnet_ipam': [{'subnet_cidr': '167.24.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:23:52,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f170772-dc88-40cd-8611-bdbdc7792509', 'name': 'ctest-vn-94140261', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['193e3be9-05e3-468d-a805-ad01b0994887'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-94140261'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337']], 'subnet_ipam': [{'subnet_cidr': '156.230.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:23:52,538 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-20 02:23:52,834 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-20 02:23:52,864 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015
2025-02-20 02:23:52,878 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab
2025-02-20 02:23:52,950 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:52,962 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:52,972 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf
2025-02-20 02:23:52,980 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf
2025-02-20 02:23:52,988 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/dfe82770-74af-4387-b269-a08c80d81c4a
2025-02-20 02:23:52,995 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-20 02:23:52,995 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:53,006 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf
2025-02-20 02:23:53,023 - INFO - Verified VN network id 8 for VN c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:53,023 - INFO - Verifications in API Server for VN ctest-vn-48534716 passed
2025-02-20 02:23:53,023 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:53,033 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf
2025-02-20 02:23:53,041 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf
2025-02-20 02:23:53,049 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/dfe82770-74af-4387-b269-a08c80d81c4a
2025-02-20 02:23:53,063 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19699624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14329731937493012143', 'uuid-lslong': '10414751513068403808'}, 'enable': 'true', 'created': '2025-02-20T02:23:50', 'last-modified': '2025-02-20T02:23:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982360'}
2025-02-20 02:23:53,070 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-20 02:23:53,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48534716 passed
2025-02-20 02:23:53,071 - DEBUG - ====Verifying policy data for ctest-vn-48534716 in API_Server ======
2025-02-20 02:23:53,071 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-20 02:23:53,077 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015
2025-02-20 02:23:53,090 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab
2025-02-20 02:23:53,161 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60
2025-02-20 02:23:53,172 - DEBUG - ==>Verifying data for policy with id: d38e58d2-0080-47aa-9933-e14ac96b6594, fqn: ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337']
2025-02-20 02:23:53,172 - INFO - VN ctest-vn-48534716 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 02:23:53,172 - DEBUG - Verifying the vn in opserver
2025-02-20 02:23:53,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716 virtual network link through opserver 10.0.0.30
2025-02-20 02:23:53,172 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-20 02:23:53,465 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-20 02:23:53,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716?flat'}
2025-02-20 02:23:53,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716 is found in opserver
2025-02-20 02:23:53,539 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 02:23:53,544 - DEBUG - VRF ids for VN ctest-vn-48534716: {}
2025-02-20 02:23:53,545 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-20 02:23:53,552 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015
2025-02-20 02:23:53,565 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab
2025-02-20 02:23:53,638 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:53,649 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:53,659 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c
2025-02-20 02:23:53,667 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c
2025-02-20 02:23:53,675 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b867138f-cb88-467b-9f9b-f083cd58aa0a
2025-02-20 02:23:53,684 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 02:23:53,684 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:53,696 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c
2025-02-20 02:23:53,715 - INFO - Verified VN network id 9 for VN 8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:53,715 - INFO - Verifications in API Server for VN ctest-vn-94140261 passed
2025-02-20 02:23:53,715 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:53,727 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c
2025-02-20 02:23:53,736 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c
2025-02-20 02:23:53,743 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b867138f-cb88-467b-9f9b-f083cd58aa0a
2025-02-20 02:23:53,758 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19699624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10310718061795623117', 'uuid-lslong': '9660711298479498505'}, 'enable': 'true', 'created': '2025-02-20T02:23:51', 'last-modified': '2025-02-20T02:23:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.446136'}
2025-02-20 02:23:53,766 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 02:23:53,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94140261 passed
2025-02-20 02:23:53,766 - DEBUG - ====Verifying policy data for ctest-vn-94140261 in API_Server ======
2025-02-20 02:23:53,766 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-20 02:23:53,772 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015
2025-02-20 02:23:53,786 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab
2025-02-20 02:23:53,859 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509
2025-02-20 02:23:53,870 - DEBUG - ==>Verifying data for policy with id: d38e58d2-0080-47aa-9933-e14ac96b6594, fqn: ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337']
2025-02-20 02:23:53,870 - INFO - VN ctest-vn-94140261 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 02:23:53,870 - DEBUG - Verifying the vn in opserver
2025-02-20 02:23:53,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261 virtual network link through opserver 10.0.0.30
2025-02-20 02:23:53,870 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-20 02:23:53,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261?flat'}
2025-02-20 02:23:53,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261 is found in opserver
2025-02-20 02:23:53,892 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 02:23:53,898 - DEBUG - VRF ids for VN ctest-vn-94140261: {}
2025-02-20 02:23:53,953 - DEBUG - Services list from nova: [