2025-06-18 17:55:38,638 - INFO - Domain Default found not creating
2025-06-18 17:55:38,857 - INFO - Project ctest-TestBasicPolicy-78437786 not found, creating it
2025-06-18 17:55:39,346 - INFO - Created Project:ctest-TestBasicPolicy-78437786, ID : e73d93bf-ae0c-46de-bbbc-f4784652819e
2025-06-18 17:55:40,935 - INFO - ================================================================================
2025-06-18 17:55:40,935 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 17:55:40,935 - 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-06-18 17:55:41,196 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-18 17:55:41,196 - INFO - Initial checks done. Running the testcase now
2025-06-18 17:55:41,196 - INFO -
2025-06-18 17:55:41,885 - DEBUG - Response for create_network : {'network': {'id': '3558b4fe-1205-47b6-a33b-e46a3f9e6866', 'name': 'ctest-vn-85707192', 'tenant_id': 'e73d93bfae0c46debbbcf4784652819e', 'project_id': 'e73d93bfae0c46debbbcf4784652819e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-vn-85707192'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:55:42,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a85d161-b46a-40d3-b7d2-7c455866ade4', 'name': '', 'tenant_id': 'e73d93bfae0c46debbbcf4784652819e', 'network_id': '3558b4fe-1205-47b6-a33b-e46a3f9e6866', 'ip_version': 4, 'cidr': '69.153.195.0/26', 'allocation_pools': [{'start': '69.153.195.2', 'end': '69.153.195.62'}], 'gateway_ip': '69.153.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.153.195.2', 'tags': [], 'project_id': 'e73d93bfae0c46debbbcf4784652819e'}}
2025-06-18 17:55:42,137 - INFO - Created VN ctest-vn-85707192
2025-06-18 17:55:42,192 - DEBUG - VN ctest-vn-85707192 UUID is 3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:42,521 - DEBUG - Response for create_network : {'network': {'id': '6058c7bf-cc1d-466b-84f1-d001efcea291', 'name': 'ctest-vn-20674400', 'tenant_id': 'e73d93bfae0c46debbbcf4784652819e', 'project_id': 'e73d93bfae0c46debbbcf4784652819e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-vn-20674400'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:55:42,735 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4158c54-c04c-4ba2-addb-23af1e8cc736', 'name': '', 'tenant_id': 'e73d93bfae0c46debbbcf4784652819e', 'network_id': '6058c7bf-cc1d-466b-84f1-d001efcea291', 'ip_version': 4, 'cidr': '57.124.185.128/26', 'allocation_pools': [{'start': '57.124.185.130', 'end': '57.124.185.190'}], 'gateway_ip': '57.124.185.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.124.185.130', 'tags': [], 'project_id': 'e73d93bfae0c46debbbcf4784652819e'}}
2025-06-18 17:55:42,755 - INFO - Created VN ctest-vn-20674400
2025-06-18 17:55:42,808 - DEBUG - VN ctest-vn-20674400 UUID is 6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:42,932 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-85707192, 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-78437786:ctest-vn-20674400, 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-06-18 17:55:43,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3558b4fe-1205-47b6-a33b-e46a3f9e6866', 'name': 'ctest-vn-85707192', 'tenant_id': 'e73d93bfae0c46debbbcf4784652819e', 'project_id': 'e73d93bfae0c46debbbcf4784652819e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a85d161-b46a-40d3-b7d2-7c455866ade4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-vn-85707192'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-policy-allow-all-83702719']], 'subnet_ipam': [{'subnet_cidr': '69.153.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:55:43,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6058c7bf-cc1d-466b-84f1-d001efcea291', 'name': 'ctest-vn-20674400', 'tenant_id': 'e73d93bfae0c46debbbcf4784652819e', 'project_id': 'e73d93bfae0c46debbbcf4784652819e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4158c54-c04c-4ba2-addb-23af1e8cc736'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-vn-20674400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-policy-allow-all-83702719']], 'subnet_ipam': [{'subnet_cidr': '57.124.185.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:55:43,692 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 17:55:44,003 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 17:55:44,039 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82dfa0ba-87e0-4353-9d02-98b9a04c6a21
2025-06-18 17:55:44,055 - DEBUG - Requesting: http://10.0.0.38:8082/project/e73d93bf-ae0c-46de-bbbc-f4784652819e
2025-06-18 17:55:44,138 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:44,152 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:44,163 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a14745ce-9368-4212-8bde-87dc9f96963d
2025-06-18 17:55:44,171 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a14745ce-9368-4212-8bde-87dc9f96963d
2025-06-18 17:55:44,181 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/19314e20-e961-4bc4-9bcb-35be1c1126fb
2025-06-18 17:55:44,188 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 17:55:44,189 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:44,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a14745ce-9368-4212-8bde-87dc9f96963d
2025-06-18 17:55:44,215 - INFO - Verified VN network id 9 for VN 3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:44,215 - INFO - Verifications in API Server for VN ctest-vn-85707192 passed
2025-06-18 17:55:44,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:44,227 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a14745ce-9368-4212-8bde-87dc9f96963d
2025-06-18 17:55:44,236 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a14745ce-9368-4212-8bde-87dc9f96963d
2025-06-18 17:55:44,245 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/19314e20-e961-4bc4-9bcb-35be1c1126fb
2025-06-18 17:55:44,259 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-85707192', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78437786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3844021285277747126', 'uuid-lslong': '11762245996793194598'}, 'enable': 'true', 'created': '2025-06-18T17:55:41', 'last-modified': '2025-06-18T17:55:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028983'}
2025-06-18 17:55:44,267 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 17:55:44,267 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85707192 passed
2025-06-18 17:55:44,267 - DEBUG - ====Verifying policy data for ctest-vn-85707192 in API_Server ======
2025-06-18 17:55:44,267 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 17:55:44,275 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82dfa0ba-87e0-4353-9d02-98b9a04c6a21
2025-06-18 17:55:44,290 - DEBUG - Requesting: http://10.0.0.38:8082/project/e73d93bf-ae0c-46de-bbbc-f4784652819e
2025-06-18 17:55:44,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3558b4fe-1205-47b6-a33b-e46a3f9e6866
2025-06-18 17:55:44,389 - DEBUG - ==>Verifying data for policy with id: 5d80556f-a29d-4e00-ba69-ab49374dc29b, fqn: ['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-policy-allow-all-83702719']
2025-06-18 17:55:44,389 - INFO - VN ctest-vn-85707192 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 17:55:44,389 - DEBUG - Verifying the vn in opserver
2025-06-18 17:55:44,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-85707192 virtual network link through opserver 10.0.0.38
2025-06-18 17:55:44,390 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-18 17:55:44,700 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-18 17:55:44,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-85707192', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-85707192?flat'}
2025-06-18 17:55:44,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-85707192 is found in opserver
2025-06-18 17:55:44,778 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 17:55:44,784 - DEBUG - VRF ids for VN ctest-vn-85707192: {}
2025-06-18 17:55:44,784 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 17:55:44,790 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82dfa0ba-87e0-4353-9d02-98b9a04c6a21
2025-06-18 17:55:44,804 - DEBUG - Requesting: http://10.0.0.38:8082/project/e73d93bf-ae0c-46de-bbbc-f4784652819e
2025-06-18 17:55:44,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:44,910 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:44,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95f1c8bb-0a0f-44e4-9cab-b4f8bc142e3d
2025-06-18 17:55:44,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95f1c8bb-0a0f-44e4-9cab-b4f8bc142e3d
2025-06-18 17:55:44,939 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e72eb6e-ba32-47eb-ac68-0f97dae65abd
2025-06-18 17:55:44,947 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 17:55:44,947 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:44,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95f1c8bb-0a0f-44e4-9cab-b4f8bc142e3d
2025-06-18 17:55:44,974 - INFO - Verified VN network id 10 for VN 6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:44,974 - INFO - Verifications in API Server for VN ctest-vn-20674400 passed
2025-06-18 17:55:44,974 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:44,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95f1c8bb-0a0f-44e4-9cab-b4f8bc142e3d
2025-06-18 17:55:44,992 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95f1c8bb-0a0f-44e4-9cab-b4f8bc142e3d
2025-06-18 17:55:44,999 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e72eb6e-ba32-47eb-ac68-0f97dae65abd
2025-06-18 17:55:45,014 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-20674400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78437786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6942518452168771179', 'uuid-lslong': '9579666589130597009'}, 'enable': 'true', 'created': '2025-06-18T17:55:42', 'last-modified': '2025-06-18T17:55:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531405'}
2025-06-18 17:55:45,024 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 17:55:45,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20674400 passed
2025-06-18 17:55:45,024 - DEBUG - ====Verifying policy data for ctest-vn-20674400 in API_Server ======
2025-06-18 17:55:45,024 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 17:55:45,030 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82dfa0ba-87e0-4353-9d02-98b9a04c6a21
2025-06-18 17:55:45,043 - DEBUG - Requesting: http://10.0.0.38:8082/project/e73d93bf-ae0c-46de-bbbc-f4784652819e
2025-06-18 17:55:45,125 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6058c7bf-cc1d-466b-84f1-d001efcea291
2025-06-18 17:55:45,138 - DEBUG - ==>Verifying data for policy with id: 5d80556f-a29d-4e00-ba69-ab49374dc29b, fqn: ['default-domain', 'ctest-TestBasicPolicy-78437786', 'ctest-policy-allow-all-83702719']
2025-06-18 17:55:45,138 - INFO - VN ctest-vn-20674400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 17:55:45,138 - DEBUG - Verifying the vn in opserver
2025-06-18 17:55:45,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-20674400 virtual network link through opserver 10.0.0.38
2025-06-18 17:55:45,138 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-18 17:55:45,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-20674400', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-20674400?flat'}
2025-06-18 17:55:45,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78437786:ctest-vn-20674400 is found in opserver
2025-06-18 17:55:45,164 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 17:55:45,171 - DEBUG - VRF ids for VN ctest-vn-20674400: {}
2025-06-18 17:55:45,244 - DEBUG - Services list from nova: [