2025-11-04 22:50:39,328 - INFO - Domain Default found not creating
2025-11-04 22:50:39,459 - INFO - Project ctest-TestBasicPolicy-68262151 not found, creating it
2025-11-04 22:50:39,881 - INFO - Created Project:ctest-TestBasicPolicy-68262151, ID : a8569d28-9b19-4513-89b7-2258771b99ed
2025-11-04 22:50:41,235 - INFO - ================================================================================
2025-11-04 22:50:41,235 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 22:50:41,235 - 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-04 22:50:41,488 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-11-04 22:50:41,488 - INFO - Initial checks done. Running the testcase now
2025-11-04 22:50:41,488 - INFO -
2025-11-04 22:50:42,007 - DEBUG - Response for create_network : {'network': {'id': 'c0603546-4b2a-4f47-a468-76e7a1b53a2a', 'name': 'ctest-vn-02923301', 'tenant_id': 'a8569d289b19451389b72258771b99ed', 'project_id': 'a8569d289b19451389b72258771b99ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-vn-02923301'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:50:42,223 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f59e11db-acac-4d50-a02b-0917bf3ec8ea', 'name': '', 'tenant_id': 'a8569d289b19451389b72258771b99ed', 'network_id': 'c0603546-4b2a-4f47-a468-76e7a1b53a2a', 'ip_version': 4, 'cidr': '193.207.125.192/26', 'allocation_pools': [{'start': '193.207.125.194', 'end': '193.207.125.254'}], 'gateway_ip': '193.207.125.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.207.125.194', 'tags': [], 'project_id': 'a8569d289b19451389b72258771b99ed'}}
2025-11-04 22:50:42,240 - INFO - Created VN ctest-vn-02923301
2025-11-04 22:50:42,291 - DEBUG - VN ctest-vn-02923301 UUID is c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:42,596 - DEBUG - Response for create_network : {'network': {'id': 'ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b', 'name': 'ctest-vn-64989523', 'tenant_id': 'a8569d289b19451389b72258771b99ed', 'project_id': 'a8569d289b19451389b72258771b99ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-vn-64989523'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:50:42,804 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e07b8959-d1ff-495d-a089-c3712d1c3d64', 'name': '', 'tenant_id': 'a8569d289b19451389b72258771b99ed', 'network_id': 'ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b', 'ip_version': 4, 'cidr': '106.180.134.192/26', 'allocation_pools': [{'start': '106.180.134.194', 'end': '106.180.134.254'}], 'gateway_ip': '106.180.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.180.134.194', 'tags': [], 'project_id': 'a8569d289b19451389b72258771b99ed'}}
2025-11-04 22:50:42,822 - INFO - Created VN ctest-vn-64989523
2025-11-04 22:50:42,871 - DEBUG - VN ctest-vn-64989523 UUID is ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:43,015 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-02923301, 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-68262151:ctest-vn-64989523, 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-04 22:50:43,305 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0603546-4b2a-4f47-a468-76e7a1b53a2a', 'name': 'ctest-vn-02923301', 'tenant_id': 'a8569d289b19451389b72258771b99ed', 'project_id': 'a8569d289b19451389b72258771b99ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f59e11db-acac-4d50-a02b-0917bf3ec8ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-vn-02923301'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-policy-allow-all-02553782']], 'subnet_ipam': [{'subnet_cidr': '193.207.125.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:50:43,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b', 'name': 'ctest-vn-64989523', 'tenant_id': 'a8569d289b19451389b72258771b99ed', 'project_id': 'a8569d289b19451389b72258771b99ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e07b8959-d1ff-495d-a089-c3712d1c3d64'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-vn-64989523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-policy-allow-all-02553782']], 'subnet_ipam': [{'subnet_cidr': '106.180.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:50:43,711 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-04 22:50:44,003 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-04 22:50:44,034 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1
2025-11-04 22:50:44,044 - DEBUG - Requesting: http://10.0.0.65:8082/project/a8569d28-9b19-4513-89b7-2258771b99ed
2025-11-04 22:50:44,114 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:44,123 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:44,130 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2ce55e4e-66a8-407e-9458-cd5be5818470
2025-11-04 22:50:44,136 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2ce55e4e-66a8-407e-9458-cd5be5818470
2025-11-04 22:50:44,142 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4f3810ca-6649-458b-aeea-b38acc6bfe78
2025-11-04 22:50:44,148 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 22:50:44,148 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:44,155 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2ce55e4e-66a8-407e-9458-cd5be5818470
2025-11-04 22:50:44,167 - INFO - Verified VN network id 12 for VN c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:44,167 - INFO - Verifications in API Server for VN ctest-vn-02923301 passed
2025-11-04 22:50:44,167 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:44,174 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2ce55e4e-66a8-407e-9458-cd5be5818470
2025-11-04 22:50:44,180 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2ce55e4e-66a8-407e-9458-cd5be5818470
2025-11-04 22:50:44,185 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4f3810ca-6649-458b-aeea-b38acc6bfe78
2025-11-04 22:50:44,194 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-02923301', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68262151', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13862138229071433543', 'uuid-lslong': '11846849557020621354'}, 'enable': 'true', 'created': '2025-11-04T22:50:41', 'last-modified': '2025-11-04T22:50:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914822'}
2025-11-04 22:50:44,199 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 22:50:44,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02923301 passed
2025-11-04 22:50:44,199 - DEBUG - ====Verifying policy data for ctest-vn-02923301 in API_Server ======
2025-11-04 22:50:44,199 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-04 22:50:44,203 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1
2025-11-04 22:50:44,213 - DEBUG - Requesting: http://10.0.0.65:8082/project/a8569d28-9b19-4513-89b7-2258771b99ed
2025-11-04 22:50:44,281 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c0603546-4b2a-4f47-a468-76e7a1b53a2a
2025-11-04 22:50:44,288 - DEBUG - ==>Verifying data for policy with id: 056e206f-4015-4af8-a86f-57e94ae214bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-policy-allow-all-02553782']
2025-11-04 22:50:44,288 - INFO - VN ctest-vn-02923301 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 22:50:44,288 - DEBUG - Verifying the vn in opserver
2025-11-04 22:50:44,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-02923301 virtual network link through opserver 10.0.0.65
2025-11-04 22:50:44,288 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-04 22:50:44,576 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-04 22:50:44,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-02923301', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-02923301?flat'}
2025-11-04 22:50:44,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-02923301 is found in opserver
2025-11-04 22:50:44,640 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 22:50:44,644 - DEBUG - VRF ids for VN ctest-vn-02923301: {}
2025-11-04 22:50:44,644 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-04 22:50:44,648 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1
2025-11-04 22:50:44,657 - DEBUG - Requesting: http://10.0.0.65:8082/project/a8569d28-9b19-4513-89b7-2258771b99ed
2025-11-04 22:50:44,724 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:44,733 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:44,741 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f3df5c71-9ed4-4996-ab58-aab9e629b1bf
2025-11-04 22:50:44,746 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f3df5c71-9ed4-4996-ab58-aab9e629b1bf
2025-11-04 22:50:44,751 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f62ab75d-d1a9-4e89-8ed5-e4c0f5e577f4
2025-11-04 22:50:44,756 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 22:50:44,756 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:44,764 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f3df5c71-9ed4-4996-ab58-aab9e629b1bf
2025-11-04 22:50:44,774 - INFO - Verified VN network id 13 for VN ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:44,774 - INFO - Verifications in API Server for VN ctest-vn-64989523 passed
2025-11-04 22:50:44,774 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:44,781 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f3df5c71-9ed4-4996-ab58-aab9e629b1bf
2025-11-04 22:50:44,787 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f3df5c71-9ed4-4996-ab58-aab9e629b1bf
2025-11-04 22:50:44,792 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f62ab75d-d1a9-4e89-8ed5-e4c0f5e577f4
2025-11-04 22:50:44,801 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-64989523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68262151', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17107707393530088339', 'uuid-lslong': '9851246922504814427'}, 'enable': 'true', 'created': '2025-11-04T22:50:42', 'last-modified': '2025-11-04T22:50:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.301386'}
2025-11-04 22:50:44,807 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 22:50:44,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64989523 passed
2025-11-04 22:50:44,807 - DEBUG - ====Verifying policy data for ctest-vn-64989523 in API_Server ======
2025-11-04 22:50:44,807 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-04 22:50:44,812 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1
2025-11-04 22:50:44,822 - DEBUG - Requesting: http://10.0.0.65:8082/project/a8569d28-9b19-4513-89b7-2258771b99ed
2025-11-04 22:50:44,886 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ed6ac93b-e0af-4b93-88b6-a8e1c28f3f5b
2025-11-04 22:50:44,893 - DEBUG - ==>Verifying data for policy with id: 056e206f-4015-4af8-a86f-57e94ae214bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-68262151', 'ctest-policy-allow-all-02553782']
2025-11-04 22:50:44,893 - INFO - VN ctest-vn-64989523 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 22:50:44,893 - DEBUG - Verifying the vn in opserver
2025-11-04 22:50:44,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-64989523 virtual network link through opserver 10.0.0.65
2025-11-04 22:50:44,893 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-04 22:50:44,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-64989523', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-64989523?flat'}
2025-11-04 22:50:44,901 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68262151:ctest-vn-64989523 is found in opserver
2025-11-04 22:50:44,909 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 22:50:44,913 - DEBUG - VRF ids for VN ctest-vn-64989523: {}
2025-11-04 22:50:44,970 - DEBUG - Services list from nova: [