2025-10-10 01:26:18,075 - INFO - Domain Default found not creating
2025-10-10 01:26:18,231 - INFO - Project ctest-TestBasicPolicy-45175468 not found, creating it
2025-10-10 01:26:18,682 - INFO - Created Project:ctest-TestBasicPolicy-45175468, ID : 1f16157c-85cc-418a-8aed-44189ddbba7b
2025-10-10 01:26:20,252 - INFO - ================================================================================
2025-10-10 01:26:20,252 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-10 01:26:20,252 - 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-10 01:26:20,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-10 01:26:20,507 - INFO - Initial checks done. Running the testcase now
2025-10-10 01:26:20,507 - INFO -
2025-10-10 01:26:21,090 - DEBUG - Response for create_network : {'network': {'id': 'd1a67dcc-ef8f-4561-9766-26112b584e5c', 'name': 'ctest-vn-33108226', 'tenant_id': '1f16157c85cc418a8aed44189ddbba7b', 'project_id': '1f16157c85cc418a8aed44189ddbba7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-vn-33108226'], 'port_security_enabled': True, 'description': ''}}
2025-10-10 01:26:21,288 - DEBUG - Response for create_subnet : {'subnet': {'id': '2adf124b-513a-4866-83fc-b857642d6447', 'name': '', 'tenant_id': '1f16157c85cc418a8aed44189ddbba7b', 'network_id': 'd1a67dcc-ef8f-4561-9766-26112b584e5c', 'ip_version': 4, 'cidr': '117.72.213.64/26', 'allocation_pools': [{'start': '117.72.213.66', 'end': '117.72.213.126'}], 'gateway_ip': '117.72.213.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.72.213.66', 'tags': [], 'project_id': '1f16157c85cc418a8aed44189ddbba7b'}}
2025-10-10 01:26:21,307 - INFO - Created VN ctest-vn-33108226
2025-10-10 01:26:21,365 - DEBUG - VN ctest-vn-33108226 UUID is d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:21,689 - DEBUG - Response for create_network : {'network': {'id': 'b224977e-9112-433a-86a2-56eb70c5a2da', 'name': 'ctest-vn-68934624', 'tenant_id': '1f16157c85cc418a8aed44189ddbba7b', 'project_id': '1f16157c85cc418a8aed44189ddbba7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-vn-68934624'], 'port_security_enabled': True, 'description': ''}}
2025-10-10 01:26:21,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe8f8b3d-a427-41e4-aa72-20d28930d725', 'name': '', 'tenant_id': '1f16157c85cc418a8aed44189ddbba7b', 'network_id': 'b224977e-9112-433a-86a2-56eb70c5a2da', 'ip_version': 4, 'cidr': '112.16.195.128/26', 'allocation_pools': [{'start': '112.16.195.130', 'end': '112.16.195.190'}], 'gateway_ip': '112.16.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.16.195.130', 'tags': [], 'project_id': '1f16157c85cc418a8aed44189ddbba7b'}}
2025-10-10 01:26:21,892 - INFO - Created VN ctest-vn-68934624
2025-10-10 01:26:21,945 - DEBUG - VN ctest-vn-68934624 UUID is b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:22,062 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-33108226, 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-45175468:ctest-vn-68934624, 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-10 01:26:22,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1a67dcc-ef8f-4561-9766-26112b584e5c', 'name': 'ctest-vn-33108226', 'tenant_id': '1f16157c85cc418a8aed44189ddbba7b', 'project_id': '1f16157c85cc418a8aed44189ddbba7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2adf124b-513a-4866-83fc-b857642d6447'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-vn-33108226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-policy-allow-all-98122882']], 'subnet_ipam': [{'subnet_cidr': '117.72.213.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-10 01:26:22,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b224977e-9112-433a-86a2-56eb70c5a2da', 'name': 'ctest-vn-68934624', 'tenant_id': '1f16157c85cc418a8aed44189ddbba7b', 'project_id': '1f16157c85cc418a8aed44189ddbba7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe8f8b3d-a427-41e4-aa72-20d28930d725'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-vn-68934624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-policy-allow-all-98122882']], 'subnet_ipam': [{'subnet_cidr': '112.16.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-10 01:26:22,789 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-10 01:26:23,235 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-10 01:26:23,282 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc
2025-10-10 01:26:23,295 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f16157c-85cc-418a-8aed-44189ddbba7b
2025-10-10 01:26:23,371 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:23,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:23,393 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcad9b8e-2db3-4016-9641-78d97ce0c1df
2025-10-10 01:26:23,401 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcad9b8e-2db3-4016-9641-78d97ce0c1df
2025-10-10 01:26:23,408 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1cc36481-2a0b-491f-bbd3-e2054f3b4346
2025-10-10 01:26:23,415 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-10 01:26:23,415 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:23,425 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcad9b8e-2db3-4016-9641-78d97ce0c1df
2025-10-10 01:26:23,440 - INFO - Verified VN network id 11 for VN d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:23,440 - INFO - Verifications in API Server for VN ctest-vn-33108226 passed
2025-10-10 01:26:23,441 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:23,450 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcad9b8e-2db3-4016-9641-78d97ce0c1df
2025-10-10 01:26:23,457 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcad9b8e-2db3-4016-9641-78d97ce0c1df
2025-10-10 01:26:23,463 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1cc36481-2a0b-491f-bbd3-e2054f3b4346
2025-10-10 01:26:23,476 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-33108226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45175468', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15106900319206851937', 'uuid-lslong': '10909449002535112284'}, 'enable': 'true', 'created': '2025-10-10T01:26:21', 'last-modified': '2025-10-10T01:26:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.142653'}
2025-10-10 01:26:23,483 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-10 01:26:23,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33108226 passed
2025-10-10 01:26:23,483 - DEBUG - ====Verifying policy data for ctest-vn-33108226 in API_Server ======
2025-10-10 01:26:23,483 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-10 01:26:23,489 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc
2025-10-10 01:26:23,502 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f16157c-85cc-418a-8aed-44189ddbba7b
2025-10-10 01:26:23,577 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1a67dcc-ef8f-4561-9766-26112b584e5c
2025-10-10 01:26:23,587 - DEBUG - ==>Verifying data for policy with id: e95fe43d-e180-4e0f-ba07-90d021961a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-policy-allow-all-98122882']
2025-10-10 01:26:23,587 - INFO - VN ctest-vn-33108226 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-10 01:26:23,587 - DEBUG - Verifying the vn in opserver
2025-10-10 01:26:23,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-33108226 virtual network link through opserver 10.0.0.254
2025-10-10 01:26:23,587 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-10 01:26:23,929 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-10 01:26:23,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-33108226', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-33108226?flat'}
2025-10-10 01:26:23,988 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-33108226 is found in opserver
2025-10-10 01:26:23,998 - DEBUG - Do not have enough data to verify VN in agent
2025-10-10 01:26:24,002 - DEBUG - VRF ids for VN ctest-vn-33108226: {}
2025-10-10 01:26:24,002 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-10 01:26:24,008 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc
2025-10-10 01:26:24,020 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f16157c-85cc-418a-8aed-44189ddbba7b
2025-10-10 01:26:24,093 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:24,104 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:24,113 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7bf0870-853e-4975-a037-f6f036f8934d
2025-10-10 01:26:24,119 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7bf0870-853e-4975-a037-f6f036f8934d
2025-10-10 01:26:24,125 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7d29d4f-8ef0-4e5c-afff-8499ec33014f
2025-10-10 01:26:24,131 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-10 01:26:24,131 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:24,139 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7bf0870-853e-4975-a037-f6f036f8934d
2025-10-10 01:26:24,151 - INFO - Verified VN network id 12 for VN b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:24,151 - INFO - Verifications in API Server for VN ctest-vn-68934624 passed
2025-10-10 01:26:24,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:24,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7bf0870-853e-4975-a037-f6f036f8934d
2025-10-10 01:26:24,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7bf0870-853e-4975-a037-f6f036f8934d
2025-10-10 01:26:24,172 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7d29d4f-8ef0-4e5c-afff-8499ec33014f
2025-10-10 01:26:24,182 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-68934624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45175468', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12836551407768322874', 'uuid-lslong': '9701412116518773466'}, 'enable': 'true', 'created': '2025-10-10T01:26:21', 'last-modified': '2025-10-10T01:26:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.604068'}
2025-10-10 01:26:24,188 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-10 01:26:24,188 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68934624 passed
2025-10-10 01:26:24,188 - DEBUG - ====Verifying policy data for ctest-vn-68934624 in API_Server ======
2025-10-10 01:26:24,189 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-10 01:26:24,195 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc
2025-10-10 01:26:24,207 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f16157c-85cc-418a-8aed-44189ddbba7b
2025-10-10 01:26:24,284 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b224977e-9112-433a-86a2-56eb70c5a2da
2025-10-10 01:26:24,294 - DEBUG - ==>Verifying data for policy with id: e95fe43d-e180-4e0f-ba07-90d021961a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-45175468', 'ctest-policy-allow-all-98122882']
2025-10-10 01:26:24,294 - INFO - VN ctest-vn-68934624 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-10 01:26:24,294 - DEBUG - Verifying the vn in opserver
2025-10-10 01:26:24,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-68934624 virtual network link through opserver 10.0.0.254
2025-10-10 01:26:24,294 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-10 01:26:24,305 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-68934624', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-68934624?flat'}
2025-10-10 01:26:24,305 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45175468:ctest-vn-68934624 is found in opserver
2025-10-10 01:26:24,315 - DEBUG - Do not have enough data to verify VN in agent
2025-10-10 01:26:24,319 - DEBUG - VRF ids for VN ctest-vn-68934624: {}
2025-10-10 01:26:24,380 - DEBUG - Services list from nova: [