2025-08-14 02:04:46,241 - INFO - Domain Default found not creating
2025-08-14 02:04:46,374 - INFO - Project ctest-TestBasicPolicy-90503345 not found, creating it
2025-08-14 02:04:46,853 - INFO - Created Project:ctest-TestBasicPolicy-90503345, ID : 339988ef-3415-4fa1-ac46-a152af78b26e
2025-08-14 02:04:48,246 - INFO - ================================================================================
2025-08-14 02:04:48,247 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 02:04:48,247 - 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-08-14 02:04:48,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2025-08-14 02:04:48,507 - INFO - Initial checks done. Running the testcase now
2025-08-14 02:04:48,507 - INFO -
2025-08-14 02:04:48,995 - DEBUG - Response for create_network : {'network': {'id': '4c0d8240-ddc2-466e-ac2e-4b48495fe8d8', 'name': 'ctest-vn-66252425', 'tenant_id': '339988ef34154fa1ac46a152af78b26e', 'project_id': '339988ef34154fa1ac46a152af78b26e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-vn-66252425'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:04:49,170 - DEBUG - Response for create_subnet : {'subnet': {'id': '1700826c-9a6d-42d5-a618-ad64c3836702', 'name': '', 'tenant_id': '339988ef34154fa1ac46a152af78b26e', 'network_id': '4c0d8240-ddc2-466e-ac2e-4b48495fe8d8', 'ip_version': 4, 'cidr': '178.244.169.128/26', 'allocation_pools': [{'start': '178.244.169.130', 'end': '178.244.169.190'}], 'gateway_ip': '178.244.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.244.169.130', 'tags': [], 'project_id': '339988ef34154fa1ac46a152af78b26e'}}
2025-08-14 02:04:49,190 - INFO - Created VN ctest-vn-66252425
2025-08-14 02:04:49,242 - DEBUG - VN ctest-vn-66252425 UUID is 4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:49,553 - DEBUG - Response for create_network : {'network': {'id': 'f204beb5-090b-4195-919a-fe7b5b41131d', 'name': 'ctest-vn-00097893', 'tenant_id': '339988ef34154fa1ac46a152af78b26e', 'project_id': '339988ef34154fa1ac46a152af78b26e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-vn-00097893'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:04:49,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f482e2b-7afc-4702-a79b-ab546289d4a7', 'name': '', 'tenant_id': '339988ef34154fa1ac46a152af78b26e', 'network_id': 'f204beb5-090b-4195-919a-fe7b5b41131d', 'ip_version': 4, 'cidr': '164.79.158.64/26', 'allocation_pools': [{'start': '164.79.158.66', 'end': '164.79.158.126'}], 'gateway_ip': '164.79.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.79.158.66', 'tags': [], 'project_id': '339988ef34154fa1ac46a152af78b26e'}}
2025-08-14 02:04:49,784 - INFO - Created VN ctest-vn-00097893
2025-08-14 02:04:49,833 - DEBUG - VN ctest-vn-00097893 UUID is f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:49,981 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-66252425, 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-90503345:ctest-vn-00097893, 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-08-14 02:04:50,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c0d8240-ddc2-466e-ac2e-4b48495fe8d8', 'name': 'ctest-vn-66252425', 'tenant_id': '339988ef34154fa1ac46a152af78b26e', 'project_id': '339988ef34154fa1ac46a152af78b26e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1700826c-9a6d-42d5-a618-ad64c3836702'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-vn-66252425'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-policy-allow-all-11386162']], 'subnet_ipam': [{'subnet_cidr': '178.244.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:04:50,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f204beb5-090b-4195-919a-fe7b5b41131d', 'name': 'ctest-vn-00097893', 'tenant_id': '339988ef34154fa1ac46a152af78b26e', 'project_id': '339988ef34154fa1ac46a152af78b26e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f482e2b-7afc-4702-a79b-ab546289d4a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-vn-00097893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-policy-allow-all-11386162']], 'subnet_ipam': [{'subnet_cidr': '164.79.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 02:04:50,638 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-14 02:04:50,902 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-14 02:04:50,931 - DEBUG - Requesting: http://10.0.0.41:8082/domain/2146537a-e282-41ab-bb12-f19bc90f9169
2025-08-14 02:04:50,945 - DEBUG - Requesting: http://10.0.0.41:8082/project/339988ef-3415-4fa1-ac46-a152af78b26e
2025-08-14 02:04:51,020 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:51,031 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:51,040 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/02d0d7b7-420a-4cfb-9806-5669412665e6
2025-08-14 02:04:51,046 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/02d0d7b7-420a-4cfb-9806-5669412665e6
2025-08-14 02:04:51,052 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/437cc987-cc8f-452b-84d2-0e63efa90d2d
2025-08-14 02:04:51,058 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 02:04:51,058 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:51,065 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/02d0d7b7-420a-4cfb-9806-5669412665e6
2025-08-14 02:04:51,077 - INFO - Verified VN network id 12 for VN 4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:51,077 - INFO - Verifications in API Server for VN ctest-vn-66252425 passed
2025-08-14 02:04:51,077 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:51,085 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/02d0d7b7-420a-4cfb-9806-5669412665e6
2025-08-14 02:04:51,092 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/02d0d7b7-420a-4cfb-9806-5669412665e6
2025-08-14 02:04:51,099 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/437cc987-cc8f-452b-84d2-0e63efa90d2d
2025-08-14 02:04:51,110 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-66252425', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90503345', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5480179536689776238', 'uuid-lslong': '12406936797293045976'}, 'enable': 'true', 'created': '2025-08-14T02:04:48', 'last-modified': '2025-08-14T02:04:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866408'}
2025-08-14 02:04:51,117 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 02:04:51,117 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66252425 passed
2025-08-14 02:04:51,117 - DEBUG - ====Verifying policy data for ctest-vn-66252425 in API_Server ======
2025-08-14 02:04:51,117 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-14 02:04:51,122 - DEBUG - Requesting: http://10.0.0.41:8082/domain/2146537a-e282-41ab-bb12-f19bc90f9169
2025-08-14 02:04:51,133 - DEBUG - Requesting: http://10.0.0.41:8082/project/339988ef-3415-4fa1-ac46-a152af78b26e
2025-08-14 02:04:51,205 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c0d8240-ddc2-466e-ac2e-4b48495fe8d8
2025-08-14 02:04:51,214 - DEBUG - ==>Verifying data for policy with id: fa4a41a1-3da3-4ee9-87a9-a145fc044ca6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-policy-allow-all-11386162']
2025-08-14 02:04:51,214 - INFO - VN ctest-vn-66252425 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 02:04:51,214 - DEBUG - Verifying the vn in opserver
2025-08-14 02:04:51,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-66252425 virtual network link through opserver 10.0.0.41
2025-08-14 02:04:51,215 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-14 02:04:51,471 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-14 02:04:51,520 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-66252425', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-66252425?flat'}
2025-08-14 02:04:51,520 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-66252425 is found in opserver
2025-08-14 02:04:51,531 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 02:04:51,538 - DEBUG - VRF ids for VN ctest-vn-66252425: {}
2025-08-14 02:04:51,538 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-14 02:04:51,546 - DEBUG - Requesting: http://10.0.0.41:8082/domain/2146537a-e282-41ab-bb12-f19bc90f9169
2025-08-14 02:04:51,561 - DEBUG - Requesting: http://10.0.0.41:8082/project/339988ef-3415-4fa1-ac46-a152af78b26e
2025-08-14 02:04:51,637 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:51,649 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:51,659 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1cc0cab0-9dc8-4d67-8cad-2e3240d4642b
2025-08-14 02:04:51,667 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1cc0cab0-9dc8-4d67-8cad-2e3240d4642b
2025-08-14 02:04:51,673 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ad62558c-f458-4b8e-a603-16222cc1c850
2025-08-14 02:04:51,679 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 02:04:51,679 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:51,689 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1cc0cab0-9dc8-4d67-8cad-2e3240d4642b
2025-08-14 02:04:51,705 - INFO - Verified VN network id 13 for VN f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:51,706 - INFO - Verifications in API Server for VN ctest-vn-00097893 passed
2025-08-14 02:04:51,706 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:51,718 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1cc0cab0-9dc8-4d67-8cad-2e3240d4642b
2025-08-14 02:04:51,726 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1cc0cab0-9dc8-4d67-8cad-2e3240d4642b
2025-08-14 02:04:51,735 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ad62558c-f458-4b8e-a603-16222cc1c850
2025-08-14 02:04:51,748 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-00097893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90503345', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17439273341835493781', 'uuid-lslong': '10491978087678415645'}, 'enable': 'true', 'created': '2025-08-14T02:04:49', 'last-modified': '2025-08-14T02:04:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.278669'}
2025-08-14 02:04:51,755 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 02:04:51,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00097893 passed
2025-08-14 02:04:51,756 - DEBUG - ====Verifying policy data for ctest-vn-00097893 in API_Server ======
2025-08-14 02:04:51,756 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-14 02:04:51,762 - DEBUG - Requesting: http://10.0.0.41:8082/domain/2146537a-e282-41ab-bb12-f19bc90f9169
2025-08-14 02:04:51,774 - DEBUG - Requesting: http://10.0.0.41:8082/project/339988ef-3415-4fa1-ac46-a152af78b26e
2025-08-14 02:04:51,844 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f204beb5-090b-4195-919a-fe7b5b41131d
2025-08-14 02:04:51,855 - DEBUG - ==>Verifying data for policy with id: fa4a41a1-3da3-4ee9-87a9-a145fc044ca6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90503345', 'ctest-policy-allow-all-11386162']
2025-08-14 02:04:51,855 - INFO - VN ctest-vn-00097893 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 02:04:51,855 - DEBUG - Verifying the vn in opserver
2025-08-14 02:04:51,855 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-00097893 virtual network link through opserver 10.0.0.41
2025-08-14 02:04:51,855 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-14 02:04:51,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-00097893', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-00097893?flat'}
2025-08-14 02:04:51,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90503345:ctest-vn-00097893 is found in opserver
2025-08-14 02:04:51,878 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 02:04:51,884 - DEBUG - VRF ids for VN ctest-vn-00097893: {}
2025-08-14 02:04:51,946 - DEBUG - Services list from nova: [