2025-09-16 11:41:07,676 - INFO - Domain Default found not creating
2025-09-16 11:41:07,818 - INFO - Project ctest-TestBasicPolicy-92089111 not found, creating it
2025-09-16 11:41:08,255 - INFO - Created Project:ctest-TestBasicPolicy-92089111, ID : 48320785-af83-4e57-9a0d-a25a5860457b
2025-09-16 11:41:09,725 - INFO - ================================================================================
2025-09-16 11:41:09,725 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-16 11:41:09,725 - 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-09-16 11:41:09,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-16 11:41:09,983 - INFO - Initial checks done. Running the testcase now
2025-09-16 11:41:09,983 - INFO -
2025-09-16 11:41:10,531 - DEBUG - Response for create_network : {'network': {'id': '32850dc9-4310-4173-9c84-406c54d9505f', 'name': 'ctest-vn-48098778', 'tenant_id': '48320785af834e579a0da25a5860457b', 'project_id': '48320785af834e579a0da25a5860457b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-vn-48098778'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 11:41:10,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c29e5ae5-83b2-41dd-a39f-831fba24f68f', 'name': '', 'tenant_id': '48320785af834e579a0da25a5860457b', 'network_id': '32850dc9-4310-4173-9c84-406c54d9505f', 'ip_version': 4, 'cidr': '218.65.4.64/26', 'allocation_pools': [{'start': '218.65.4.66', 'end': '218.65.4.126'}], 'gateway_ip': '218.65.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.65.4.66', 'tags': [], 'project_id': '48320785af834e579a0da25a5860457b'}}
2025-09-16 11:41:10,725 - INFO - Created VN ctest-vn-48098778
2025-09-16 11:41:10,802 - DEBUG - VN ctest-vn-48098778 UUID is 32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:11,079 - DEBUG - Response for create_network : {'network': {'id': '87009799-1aaa-4d3e-b41c-04dbdcca3857', 'name': 'ctest-vn-10724975', 'tenant_id': '48320785af834e579a0da25a5860457b', 'project_id': '48320785af834e579a0da25a5860457b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-vn-10724975'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 11:41:11,232 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afd1f53c-7305-486c-a6b5-48b156b4d872', 'name': '', 'tenant_id': '48320785af834e579a0da25a5860457b', 'network_id': '87009799-1aaa-4d3e-b41c-04dbdcca3857', 'ip_version': 4, 'cidr': '195.40.160.128/26', 'allocation_pools': [{'start': '195.40.160.130', 'end': '195.40.160.190'}], 'gateway_ip': '195.40.160.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.40.160.130', 'tags': [], 'project_id': '48320785af834e579a0da25a5860457b'}}
2025-09-16 11:41:11,250 - INFO - Created VN ctest-vn-10724975
2025-09-16 11:41:11,306 - DEBUG - VN ctest-vn-10724975 UUID is 87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:11,425 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-48098778, 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-92089111:ctest-vn-10724975, 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-09-16 11:41:11,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32850dc9-4310-4173-9c84-406c54d9505f', 'name': 'ctest-vn-48098778', 'tenant_id': '48320785af834e579a0da25a5860457b', 'project_id': '48320785af834e579a0da25a5860457b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c29e5ae5-83b2-41dd-a39f-831fba24f68f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-vn-48098778'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-policy-allow-all-50318270']], 'subnet_ipam': [{'subnet_cidr': '218.65.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 11:41:12,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87009799-1aaa-4d3e-b41c-04dbdcca3857', 'name': 'ctest-vn-10724975', 'tenant_id': '48320785af834e579a0da25a5860457b', 'project_id': '48320785af834e579a0da25a5860457b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afd1f53c-7305-486c-a6b5-48b156b4d872'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-vn-10724975'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-policy-allow-all-50318270']], 'subnet_ipam': [{'subnet_cidr': '195.40.160.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 11:41:12,158 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 11:41:12,458 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 11:41:12,486 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea
2025-09-16 11:41:12,498 - DEBUG - Requesting: http://10.0.0.38:8082/project/48320785-af83-4e57-9a0d-a25a5860457b
2025-09-16 11:41:12,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:12,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:12,587 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfc50e3f-acce-45e9-9b65-9bd5ef0f816e
2025-09-16 11:41:12,593 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfc50e3f-acce-45e9-9b65-9bd5ef0f816e
2025-09-16 11:41:12,599 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ffecf95-4c2f-4731-9ef1-eada8e73acd6
2025-09-16 11:41:12,604 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 11:41:12,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:12,611 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfc50e3f-acce-45e9-9b65-9bd5ef0f816e
2025-09-16 11:41:12,623 - INFO - Verified VN network id 11 for VN 32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:12,623 - INFO - Verifications in API Server for VN ctest-vn-48098778 passed
2025-09-16 11:41:12,623 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:12,631 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfc50e3f-acce-45e9-9b65-9bd5ef0f816e
2025-09-16 11:41:12,636 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfc50e3f-acce-45e9-9b65-9bd5ef0f816e
2025-09-16 11:41:12,641 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ffecf95-4c2f-4731-9ef1-eada8e73acd6
2025-09-16 11:41:12,651 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-48098778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92089111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3640331031863640435', 'uuid-lslong': '11278210200866738271'}, 'enable': 'true', 'created': '2025-09-16T11:41:10', 'last-modified': '2025-09-16T11:41:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947770'}
2025-09-16 11:41:12,656 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 11:41:12,656 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48098778 passed
2025-09-16 11:41:12,657 - DEBUG - ====Verifying policy data for ctest-vn-48098778 in API_Server ======
2025-09-16 11:41:12,657 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 11:41:12,662 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea
2025-09-16 11:41:12,672 - DEBUG - Requesting: http://10.0.0.38:8082/project/48320785-af83-4e57-9a0d-a25a5860457b
2025-09-16 11:41:12,737 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32850dc9-4310-4173-9c84-406c54d9505f
2025-09-16 11:41:12,746 - DEBUG - ==>Verifying data for policy with id: 5038c1bc-c38b-4dc5-ad40-c48f857a0d2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-policy-allow-all-50318270']
2025-09-16 11:41:12,746 - INFO - VN ctest-vn-48098778 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 11:41:12,746 - DEBUG - Verifying the vn in opserver
2025-09-16 11:41:12,746 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-48098778 virtual network link through opserver 10.0.0.38
2025-09-16 11:41:12,746 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-16 11:41:13,036 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-16 11:41:13,088 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-48098778', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-48098778?flat'}
2025-09-16 11:41:13,088 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-48098778 is found in opserver
2025-09-16 11:41:13,097 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 11:41:13,101 - DEBUG - VRF ids for VN ctest-vn-48098778: {}
2025-09-16 11:41:13,101 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 11:41:13,106 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea
2025-09-16 11:41:13,116 - DEBUG - Requesting: http://10.0.0.38:8082/project/48320785-af83-4e57-9a0d-a25a5860457b
2025-09-16 11:41:13,186 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:13,197 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:13,204 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/22a33f98-5bd0-45c9-bea2-4fcecae06bd5
2025-09-16 11:41:13,211 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/22a33f98-5bd0-45c9-bea2-4fcecae06bd5
2025-09-16 11:41:13,217 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/624fd393-f091-4906-888c-1a369dec2997
2025-09-16 11:41:13,224 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 11:41:13,224 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:13,232 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/22a33f98-5bd0-45c9-bea2-4fcecae06bd5
2025-09-16 11:41:13,246 - INFO - Verified VN network id 12 for VN 87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:13,246 - INFO - Verifications in API Server for VN ctest-vn-10724975 passed
2025-09-16 11:41:13,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:13,255 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/22a33f98-5bd0-45c9-bea2-4fcecae06bd5
2025-09-16 11:41:13,262 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/22a33f98-5bd0-45c9-bea2-4fcecae06bd5
2025-09-16 11:41:13,269 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/624fd393-f091-4906-888c-1a369dec2997
2025-09-16 11:41:13,280 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-10724975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92089111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9727941878953430334', 'uuid-lslong': '12978253568523515991'}, 'enable': 'true', 'created': '2025-09-16T11:41:11', 'last-modified': '2025-09-16T11:41:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.342696'}
2025-09-16 11:41:13,288 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 11:41:13,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10724975 passed
2025-09-16 11:41:13,288 - DEBUG - ====Verifying policy data for ctest-vn-10724975 in API_Server ======
2025-09-16 11:41:13,288 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-16 11:41:13,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea
2025-09-16 11:41:13,303 - DEBUG - Requesting: http://10.0.0.38:8082/project/48320785-af83-4e57-9a0d-a25a5860457b
2025-09-16 11:41:13,368 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87009799-1aaa-4d3e-b41c-04dbdcca3857
2025-09-16 11:41:13,377 - DEBUG - ==>Verifying data for policy with id: 5038c1bc-c38b-4dc5-ad40-c48f857a0d2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-92089111', 'ctest-policy-allow-all-50318270']
2025-09-16 11:41:13,377 - INFO - VN ctest-vn-10724975 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 11:41:13,377 - DEBUG - Verifying the vn in opserver
2025-09-16 11:41:13,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-10724975 virtual network link through opserver 10.0.0.38
2025-09-16 11:41:13,377 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-16 11:41:13,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-10724975', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-10724975?flat'}
2025-09-16 11:41:13,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92089111:ctest-vn-10724975 is found in opserver
2025-09-16 11:41:13,398 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 11:41:13,403 - DEBUG - VRF ids for VN ctest-vn-10724975: {}
2025-09-16 11:41:13,462 - DEBUG - Services list from nova: [