2025-04-18 14:12:36,101 - INFO - Domain Default found not creating
2025-04-18 14:12:36,322 - INFO - Project ctest-TestBasicPolicy-53749077 not found, creating it
2025-04-18 14:12:36,835 - INFO - Created Project:ctest-TestBasicPolicy-53749077, ID : 03b96953-a3b2-492e-aa4f-e87713fab75d
2025-04-18 14:12:38,556 - INFO - ================================================================================
2025-04-18 14:12:38,556 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-18 14:12:38,556 - 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-04-18 14:12:38,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-04-18 14:12:38,832 - INFO - Initial checks done. Running the testcase now
2025-04-18 14:12:38,833 - INFO -
2025-04-18 14:12:39,484 - DEBUG - Response for create_network : {'network': {'id': 'c31de66b-4e88-4132-ba66-3aa4c3c625f0', 'name': 'ctest-vn-48030282', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-48030282'], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:12:39,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3cda805-30af-4bec-bd8a-2bbef8c28007', 'name': '', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'network_id': 'c31de66b-4e88-4132-ba66-3aa4c3c625f0', 'ip_version': 4, 'cidr': '42.181.22.192/26', 'allocation_pools': [{'start': '42.181.22.194', 'end': '42.181.22.254'}], 'gateway_ip': '42.181.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.181.22.194', 'tags': [], 'project_id': '03b96953a3b2492eaa4fe87713fab75d'}}
2025-04-18 14:12:39,729 - INFO - Created VN ctest-vn-48030282
2025-04-18 14:12:39,786 - DEBUG - VN ctest-vn-48030282 UUID is c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:40,161 - DEBUG - Response for create_network : {'network': {'id': '96217cc3-7321-41b7-a40b-d1c0bbba4133', 'name': 'ctest-vn-77816194', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-77816194'], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:12:40,379 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a278a8cc-e4b1-494c-a7b1-0c6a51ab78de', 'name': '', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'network_id': '96217cc3-7321-41b7-a40b-d1c0bbba4133', 'ip_version': 4, 'cidr': '154.75.80.128/26', 'allocation_pools': [{'start': '154.75.80.130', 'end': '154.75.80.190'}], 'gateway_ip': '154.75.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.75.80.130', 'tags': [], 'project_id': '03b96953a3b2492eaa4fe87713fab75d'}}
2025-04-18 14:12:40,407 - INFO - Created VN ctest-vn-77816194
2025-04-18 14:12:40,466 - DEBUG - VN ctest-vn-77816194 UUID is 96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:40,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282, 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-53749077:ctest-vn-77816194, 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-04-18 14:12:40,999 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c31de66b-4e88-4132-ba66-3aa4c3c625f0', 'name': 'ctest-vn-48030282', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3cda805-30af-4bec-bd8a-2bbef8c28007'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-48030282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132']], 'subnet_ipam': [{'subnet_cidr': '42.181.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:12:41,312 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96217cc3-7321-41b7-a40b-d1c0bbba4133', 'name': 'ctest-vn-77816194', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a278a8cc-e4b1-494c-a7b1-0c6a51ab78de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-77816194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132']], 'subnet_ipam': [{'subnet_cidr': '154.75.80.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:12:41,478 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-18 14:12:41,805 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-18 14:12:41,848 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd
2025-04-18 14:12:41,867 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d
2025-04-18 14:12:41,953 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:41,969 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:41,984 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13
2025-04-18 14:12:41,997 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13
2025-04-18 14:12:42,010 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b77bf1e8-e0bf-460c-8f9b-e2dceb64515c
2025-04-18 14:12:42,024 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-18 14:12:42,025 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:42,042 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13
2025-04-18 14:12:42,069 - INFO - Verified VN network id 7 for VN c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:42,070 - INFO - Verifications in API Server for VN ctest-vn-48030282 passed
2025-04-18 14:12:42,070 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:42,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13
2025-04-18 14:12:42,100 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13
2025-04-18 14:12:42,112 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b77bf1e8-e0bf-460c-8f9b-e2dceb64515c
2025-04-18 14:12:42,129 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53749077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14059646960273998130', 'uuid-lslong': '13431487418012673520'}, 'enable': 'true', 'created': '2025-04-18T14:12:39', 'last-modified': '2025-04-18T14:12:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181664'}
2025-04-18 14:12:42,139 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-18 14:12:42,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48030282 passed
2025-04-18 14:12:42,139 - DEBUG - ====Verifying policy data for ctest-vn-48030282 in API_Server ======
2025-04-18 14:12:42,140 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-18 14:12:42,149 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd
2025-04-18 14:12:42,165 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d
2025-04-18 14:12:42,261 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0
2025-04-18 14:12:42,277 - DEBUG - ==>Verifying data for policy with id: 50cce5d8-44d9-4050-9546-a18b7467710d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132']
2025-04-18 14:12:42,277 - INFO - VN ctest-vn-48030282 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-18 14:12:42,277 - DEBUG - Verifying the vn in opserver
2025-04-18 14:12:42,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282 virtual network link through opserver 10.0.0.50
2025-04-18 14:12:42,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-18 14:12:42,612 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-18 14:12:42,694 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282?flat'}
2025-04-18 14:12:42,694 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282 is found in opserver
2025-04-18 14:12:42,710 - DEBUG - Do not have enough data to verify VN in agent
2025-04-18 14:12:42,717 - DEBUG - VRF ids for VN ctest-vn-48030282: {}
2025-04-18 14:12:42,717 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-18 14:12:42,726 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd
2025-04-18 14:12:42,743 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d
2025-04-18 14:12:42,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:42,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:42,856 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707
2025-04-18 14:12:42,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707
2025-04-18 14:12:42,879 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8068730f-aa60-4abc-bd24-f2b5a7eec36e
2025-04-18 14:12:42,889 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-18 14:12:42,889 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:42,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707
2025-04-18 14:12:42,930 - INFO - Verified VN network id 8 for VN 96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:42,930 - INFO - Verifications in API Server for VN ctest-vn-77816194 passed
2025-04-18 14:12:42,930 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:42,946 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707
2025-04-18 14:12:42,957 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707
2025-04-18 14:12:42,969 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8068730f-aa60-4abc-bd24-f2b5a7eec36e
2025-04-18 14:12:42,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53749077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10818064958812668343', 'uuid-lslong': '11820772272677470515'}, 'enable': 'true', 'created': '2025-04-18T14:12:40', 'last-modified': '2025-04-18T14:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.757744'}
2025-04-18 14:12:42,997 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-18 14:12:42,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77816194 passed
2025-04-18 14:12:42,997 - DEBUG - ====Verifying policy data for ctest-vn-77816194 in API_Server ======
2025-04-18 14:12:42,997 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-18 14:12:43,006 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd
2025-04-18 14:12:43,028 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d
2025-04-18 14:12:43,117 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133
2025-04-18 14:12:43,132 - DEBUG - ==>Verifying data for policy with id: 50cce5d8-44d9-4050-9546-a18b7467710d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132']
2025-04-18 14:12:43,132 - INFO - VN ctest-vn-77816194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-18 14:12:43,132 - DEBUG - Verifying the vn in opserver
2025-04-18 14:12:43,132 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194 virtual network link through opserver 10.0.0.50
2025-04-18 14:12:43,132 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-18 14:12:43,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194?flat'}
2025-04-18 14:12:43,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194 is found in opserver
2025-04-18 14:12:43,162 - DEBUG - Do not have enough data to verify VN in agent
2025-04-18 14:12:43,168 - DEBUG - VRF ids for VN ctest-vn-77816194: {}
2025-04-18 14:12:43,252 - DEBUG - Services list from nova: [