2025-11-03 02:03:31,271 - INFO - Domain Default found not creating
2025-11-03 02:03:31,427 - INFO - Project ctest-TestBasicPolicy-86432267 not found, creating it
2025-11-03 02:03:31,881 - INFO - Created Project:ctest-TestBasicPolicy-86432267, ID : 97f1c24a-11fe-4200-94f1-752e959f98cf
2025-11-03 02:03:33,361 - INFO - ================================================================================
2025-11-03 02:03:33,361 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 02:03:33,361 - 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-11-03 02:03:33,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2025-11-03 02:03:33,619 - INFO - Initial checks done. Running the testcase now
2025-11-03 02:03:33,619 - INFO -
2025-11-03 02:03:34,187 - DEBUG - Response for create_network : {'network': {'id': '7e4d053a-6a21-4a3c-bd91-4d7474efc7fe', 'name': 'ctest-vn-41739221', 'tenant_id': '97f1c24a11fe420094f1752e959f98cf', 'project_id': '97f1c24a11fe420094f1752e959f98cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-vn-41739221'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:03:34,349 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9e62b24-71d8-482d-9a49-9906d4be6f34', 'name': '', 'tenant_id': '97f1c24a11fe420094f1752e959f98cf', 'network_id': '7e4d053a-6a21-4a3c-bd91-4d7474efc7fe', 'ip_version': 4, 'cidr': '194.157.35.64/26', 'allocation_pools': [{'start': '194.157.35.66', 'end': '194.157.35.126'}], 'gateway_ip': '194.157.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.157.35.66', 'tags': [], 'project_id': '97f1c24a11fe420094f1752e959f98cf'}}
2025-11-03 02:03:34,368 - INFO - Created VN ctest-vn-41739221
2025-11-03 02:03:34,420 - DEBUG - VN ctest-vn-41739221 UUID is 7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:34,713 - DEBUG - Response for create_network : {'network': {'id': '8e7a7849-8f7f-4c27-9d73-f7c824dc9190', 'name': 'ctest-vn-49577710', 'tenant_id': '97f1c24a11fe420094f1752e959f98cf', 'project_id': '97f1c24a11fe420094f1752e959f98cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-vn-49577710'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:03:34,939 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcb34572-f266-47d4-b32d-6491fa16b532', 'name': '', 'tenant_id': '97f1c24a11fe420094f1752e959f98cf', 'network_id': '8e7a7849-8f7f-4c27-9d73-f7c824dc9190', 'ip_version': 4, 'cidr': '212.207.68.192/26', 'allocation_pools': [{'start': '212.207.68.194', 'end': '212.207.68.254'}], 'gateway_ip': '212.207.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.207.68.194', 'tags': [], 'project_id': '97f1c24a11fe420094f1752e959f98cf'}}
2025-11-03 02:03:34,957 - INFO - Created VN ctest-vn-49577710
2025-11-03 02:03:35,008 - DEBUG - VN ctest-vn-49577710 UUID is 8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:35,160 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-41739221, 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-86432267:ctest-vn-49577710, 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-11-03 02:03:35,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e4d053a-6a21-4a3c-bd91-4d7474efc7fe', 'name': 'ctest-vn-41739221', 'tenant_id': '97f1c24a11fe420094f1752e959f98cf', 'project_id': '97f1c24a11fe420094f1752e959f98cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9e62b24-71d8-482d-9a49-9906d4be6f34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-vn-41739221'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-policy-allow-all-95599755']], 'subnet_ipam': [{'subnet_cidr': '194.157.35.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:03:35,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e7a7849-8f7f-4c27-9d73-f7c824dc9190', 'name': 'ctest-vn-49577710', 'tenant_id': '97f1c24a11fe420094f1752e959f98cf', 'project_id': '97f1c24a11fe420094f1752e959f98cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fcb34572-f266-47d4-b32d-6491fa16b532'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-vn-49577710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-policy-allow-all-95599755']], 'subnet_ipam': [{'subnet_cidr': '212.207.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:03:35,868 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-03 02:03:36,164 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-03 02:03:36,192 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e0c9939f-3867-4b8d-8d98-011d356e5712
2025-11-03 02:03:36,203 - DEBUG - Requesting: http://10.0.0.27:8082/project/97f1c24a-11fe-4200-94f1-752e959f98cf
2025-11-03 02:03:36,276 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:36,287 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:36,295 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/51984bdc-8dd0-458f-a20b-1f3377328a9d
2025-11-03 02:03:36,302 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/51984bdc-8dd0-458f-a20b-1f3377328a9d
2025-11-03 02:03:36,307 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8a0e0152-e9ad-43a6-a6f2-b535f0f71ca2
2025-11-03 02:03:36,313 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 02:03:36,313 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:36,320 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/51984bdc-8dd0-458f-a20b-1f3377328a9d
2025-11-03 02:03:36,333 - INFO - Verified VN network id 11 for VN 7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:36,333 - INFO - Verifications in API Server for VN ctest-vn-41739221 passed
2025-11-03 02:03:36,333 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:36,342 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/51984bdc-8dd0-458f-a20b-1f3377328a9d
2025-11-03 02:03:36,347 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/51984bdc-8dd0-458f-a20b-1f3377328a9d
2025-11-03 02:03:36,354 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8a0e0152-e9ad-43a6-a6f2-b535f0f71ca2
2025-11-03 02:03:36,365 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-41739221', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86432267', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9100936170432449084', 'uuid-lslong': '13659784307364841470'}, 'enable': 'true', 'created': '2025-11-03T02:03:34', 'last-modified': '2025-11-03T02:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934638'}
2025-11-03 02:03:36,371 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 02:03:36,371 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41739221 passed
2025-11-03 02:03:36,371 - DEBUG - ====Verifying policy data for ctest-vn-41739221 in API_Server ======
2025-11-03 02:03:36,371 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-03 02:03:36,377 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e0c9939f-3867-4b8d-8d98-011d356e5712
2025-11-03 02:03:36,388 - DEBUG - Requesting: http://10.0.0.27:8082/project/97f1c24a-11fe-4200-94f1-752e959f98cf
2025-11-03 02:03:36,463 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e4d053a-6a21-4a3c-bd91-4d7474efc7fe
2025-11-03 02:03:36,472 - DEBUG - ==>Verifying data for policy with id: 91293cbd-ac92-49b9-b0d1-4a82ba524371, fqn: ['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-policy-allow-all-95599755']
2025-11-03 02:03:36,472 - INFO - VN ctest-vn-41739221 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 02:03:36,472 - DEBUG - Verifying the vn in opserver
2025-11-03 02:03:36,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-41739221 virtual network link through opserver 10.0.0.27
2025-11-03 02:03:36,473 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-03 02:03:36,792 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-03 02:03:36,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-41739221', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-41739221?flat'}
2025-11-03 02:03:36,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-41739221 is found in opserver
2025-11-03 02:03:36,870 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 02:03:36,875 - DEBUG - VRF ids for VN ctest-vn-41739221: {}
2025-11-03 02:03:36,875 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-03 02:03:36,880 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e0c9939f-3867-4b8d-8d98-011d356e5712
2025-11-03 02:03:36,894 - DEBUG - Requesting: http://10.0.0.27:8082/project/97f1c24a-11fe-4200-94f1-752e959f98cf
2025-11-03 02:03:36,968 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:36,980 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:36,990 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5190ede2-a45c-43d7-acc2-8736e35e4b00
2025-11-03 02:03:36,996 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5190ede2-a45c-43d7-acc2-8736e35e4b00
2025-11-03 02:03:37,002 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b2fb60aa-c319-4ffe-a603-d1646d38235b
2025-11-03 02:03:37,010 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 02:03:37,010 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:37,019 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5190ede2-a45c-43d7-acc2-8736e35e4b00
2025-11-03 02:03:37,033 - INFO - Verified VN network id 12 for VN 8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:37,033 - INFO - Verifications in API Server for VN ctest-vn-49577710 passed
2025-11-03 02:03:37,033 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:37,042 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5190ede2-a45c-43d7-acc2-8736e35e4b00
2025-11-03 02:03:37,049 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5190ede2-a45c-43d7-acc2-8736e35e4b00
2025-11-03 02:03:37,055 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b2fb60aa-c319-4ffe-a603-d1646d38235b
2025-11-03 02:03:37,068 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-49577710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86432267', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10266650557879897127', 'uuid-lslong': '11345684325260366224'}, 'enable': 'true', 'created': '2025-11-03T02:03:34', 'last-modified': '2025-11-03T02:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392103'}
2025-11-03 02:03:37,073 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 02:03:37,073 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49577710 passed
2025-11-03 02:03:37,074 - DEBUG - ====Verifying policy data for ctest-vn-49577710 in API_Server ======
2025-11-03 02:03:37,074 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-03 02:03:37,080 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e0c9939f-3867-4b8d-8d98-011d356e5712
2025-11-03 02:03:37,091 - DEBUG - Requesting: http://10.0.0.27:8082/project/97f1c24a-11fe-4200-94f1-752e959f98cf
2025-11-03 02:03:37,157 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8e7a7849-8f7f-4c27-9d73-f7c824dc9190
2025-11-03 02:03:37,165 - DEBUG - ==>Verifying data for policy with id: 91293cbd-ac92-49b9-b0d1-4a82ba524371, fqn: ['default-domain', 'ctest-TestBasicPolicy-86432267', 'ctest-policy-allow-all-95599755']
2025-11-03 02:03:37,165 - INFO - VN ctest-vn-49577710 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 02:03:37,165 - DEBUG - Verifying the vn in opserver
2025-11-03 02:03:37,165 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-49577710 virtual network link through opserver 10.0.0.27
2025-11-03 02:03:37,165 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-03 02:03:37,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-49577710', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-49577710?flat'}
2025-11-03 02:03:37,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86432267:ctest-vn-49577710 is found in opserver
2025-11-03 02:03:37,185 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 02:03:37,189 - DEBUG - VRF ids for VN ctest-vn-49577710: {}
2025-11-03 02:03:37,248 - DEBUG - Services list from nova: [