2025-12-09 13:27:51,477 - INFO - Domain Default found not creating
2025-12-09 13:27:51,676 - INFO - Project ctest-TestBasicPolicy-22497653 not found, creating it
2025-12-09 13:27:52,199 - INFO - Created Project:ctest-TestBasicPolicy-22497653, ID : 897a9953-ed15-46b3-9512-63f263d7de34
2025-12-09 13:27:53,841 - INFO - ================================================================================
2025-12-09 13:27:53,841 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 13:27:53,841 - 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-12-09 13:27:54,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-12-09 13:27:54,099 - INFO - Initial checks done. Running the testcase now
2025-12-09 13:27:54,099 - INFO -
2025-12-09 13:27:54,709 - DEBUG - Response for create_network : {'network': {'id': '5b879ae0-11e9-406c-a603-c1024dd8e03f', 'name': 'ctest-vn-83690736', 'tenant_id': '897a9953ed1546b3951263f263d7de34', 'project_id': '897a9953ed1546b3951263f263d7de34', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-vn-83690736'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 13:27:54,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '79a84ef3-2df7-41f7-8f6c-ec4ef54c31d8', 'name': '', 'tenant_id': '897a9953ed1546b3951263f263d7de34', 'network_id': '5b879ae0-11e9-406c-a603-c1024dd8e03f', 'ip_version': 4, 'cidr': '13.86.177.64/26', 'allocation_pools': [{'start': '13.86.177.66', 'end': '13.86.177.126'}], 'gateway_ip': '13.86.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.86.177.66', 'tags': [], 'project_id': '897a9953ed1546b3951263f263d7de34'}}
2025-12-09 13:27:54,886 - INFO - Created VN ctest-vn-83690736
2025-12-09 13:27:54,941 - DEBUG - VN ctest-vn-83690736 UUID is 5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:55,258 - DEBUG - Response for create_network : {'network': {'id': '8962e067-c742-44b4-828c-4133c575f3c1', 'name': 'ctest-vn-68339879', 'tenant_id': '897a9953ed1546b3951263f263d7de34', 'project_id': '897a9953ed1546b3951263f263d7de34', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-vn-68339879'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 13:27:55,462 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd38ec385-6ead-4460-9d54-09daec23e49c', 'name': '', 'tenant_id': '897a9953ed1546b3951263f263d7de34', 'network_id': '8962e067-c742-44b4-828c-4133c575f3c1', 'ip_version': 4, 'cidr': '189.244.184.0/26', 'allocation_pools': [{'start': '189.244.184.2', 'end': '189.244.184.62'}], 'gateway_ip': '189.244.184.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.244.184.2', 'tags': [], 'project_id': '897a9953ed1546b3951263f263d7de34'}}
2025-12-09 13:27:55,482 - INFO - Created VN ctest-vn-68339879
2025-12-09 13:27:55,537 - DEBUG - VN ctest-vn-68339879 UUID is 8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:55,654 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-83690736, 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-22497653:ctest-vn-68339879, 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-12-09 13:27:55,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b879ae0-11e9-406c-a603-c1024dd8e03f', 'name': 'ctest-vn-83690736', 'tenant_id': '897a9953ed1546b3951263f263d7de34', 'project_id': '897a9953ed1546b3951263f263d7de34', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79a84ef3-2df7-41f7-8f6c-ec4ef54c31d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-vn-83690736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-policy-allow-all-82000745']], 'subnet_ipam': [{'subnet_cidr': '13.86.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 13:27:56,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8962e067-c742-44b4-828c-4133c575f3c1', 'name': 'ctest-vn-68339879', 'tenant_id': '897a9953ed1546b3951263f263d7de34', 'project_id': '897a9953ed1546b3951263f263d7de34', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d38ec385-6ead-4460-9d54-09daec23e49c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-vn-68339879'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-policy-allow-all-82000745']], 'subnet_ipam': [{'subnet_cidr': '189.244.184.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 13:27:56,345 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 13:27:56,692 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 13:27:56,728 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dcf73d1f-6d4f-4352-8d17-341963f61a92
2025-12-09 13:27:56,742 - DEBUG - Requesting: http://10.0.0.38:8082/project/897a9953-ed15-46b3-9512-63f263d7de34
2025-12-09 13:27:56,818 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:56,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:56,843 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/40c37f46-c0c8-48b3-9fdd-cb354be04970
2025-12-09 13:27:56,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/40c37f46-c0c8-48b3-9fdd-cb354be04970
2025-12-09 13:27:56,860 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1810c837-36e7-483c-9a06-acc990b182db
2025-12-09 13:27:56,868 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 13:27:56,868 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:56,878 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/40c37f46-c0c8-48b3-9fdd-cb354be04970
2025-12-09 13:27:56,895 - INFO - Verified VN network id 11 for VN 5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:56,895 - INFO - Verifications in API Server for VN ctest-vn-83690736 passed
2025-12-09 13:27:56,896 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:56,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/40c37f46-c0c8-48b3-9fdd-cb354be04970
2025-12-09 13:27:56,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/40c37f46-c0c8-48b3-9fdd-cb354be04970
2025-12-09 13:27:56,924 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1810c837-36e7-483c-9a06-acc990b182db
2025-12-09 13:27:56,940 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-83690736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22497653', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6595410466471231596', 'uuid-lslong': '11962617250866323519'}, 'enable': 'true', 'created': '2025-12-09T13:27:54', 'last-modified': '2025-12-09T13:27:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009768'}
2025-12-09 13:27:56,947 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 13:27:56,947 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83690736 passed
2025-12-09 13:27:56,947 - DEBUG - ====Verifying policy data for ctest-vn-83690736 in API_Server ======
2025-12-09 13:27:56,948 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 13:27:56,955 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dcf73d1f-6d4f-4352-8d17-341963f61a92
2025-12-09 13:27:56,970 - DEBUG - Requesting: http://10.0.0.38:8082/project/897a9953-ed15-46b3-9512-63f263d7de34
2025-12-09 13:27:57,048 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b879ae0-11e9-406c-a603-c1024dd8e03f
2025-12-09 13:27:57,059 - DEBUG - ==>Verifying data for policy with id: 2ebb98eb-7553-4316-9be9-2df96d55d155, fqn: ['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-policy-allow-all-82000745']
2025-12-09 13:27:57,060 - INFO - VN ctest-vn-83690736 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 13:27:57,060 - DEBUG - Verifying the vn in opserver
2025-12-09 13:27:57,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-83690736 virtual network link through opserver 10.0.0.38
2025-12-09 13:27:57,060 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 13:27:57,367 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 13:27:57,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-83690736', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-83690736?flat'}
2025-12-09 13:27:57,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-83690736 is found in opserver
2025-12-09 13:27:57,445 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 13:27:57,450 - DEBUG - VRF ids for VN ctest-vn-83690736: {}
2025-12-09 13:27:57,450 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 13:27:57,456 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dcf73d1f-6d4f-4352-8d17-341963f61a92
2025-12-09 13:27:57,467 - DEBUG - Requesting: http://10.0.0.38:8082/project/897a9953-ed15-46b3-9512-63f263d7de34
2025-12-09 13:27:57,539 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:57,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:57,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdcb93c5-3b7a-48ec-8ce7-9404c2dbd7cd
2025-12-09 13:27:57,570 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdcb93c5-3b7a-48ec-8ce7-9404c2dbd7cd
2025-12-09 13:27:57,577 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8716a10d-30b9-4979-92c8-da2111ec80d0
2025-12-09 13:27:57,584 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 13:27:57,584 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:57,594 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdcb93c5-3b7a-48ec-8ce7-9404c2dbd7cd
2025-12-09 13:27:57,608 - INFO - Verified VN network id 12 for VN 8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:57,608 - INFO - Verifications in API Server for VN ctest-vn-68339879 passed
2025-12-09 13:27:57,609 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:57,618 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdcb93c5-3b7a-48ec-8ce7-9404c2dbd7cd
2025-12-09 13:27:57,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdcb93c5-3b7a-48ec-8ce7-9404c2dbd7cd
2025-12-09 13:27:57,633 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8716a10d-30b9-4979-92c8-da2111ec80d0
2025-12-09 13:27:57,647 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-68339879', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22497653', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9899721667243033780', 'uuid-lslong': '9406965412282102721'}, 'enable': 'true', 'created': '2025-12-09T13:27:55', 'last-modified': '2025-12-09T13:27:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478350'}
2025-12-09 13:27:57,653 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 13:27:57,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68339879 passed
2025-12-09 13:27:57,654 - DEBUG - ====Verifying policy data for ctest-vn-68339879 in API_Server ======
2025-12-09 13:27:57,654 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 13:27:57,660 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dcf73d1f-6d4f-4352-8d17-341963f61a92
2025-12-09 13:27:57,673 - DEBUG - Requesting: http://10.0.0.38:8082/project/897a9953-ed15-46b3-9512-63f263d7de34
2025-12-09 13:27:57,744 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8962e067-c742-44b4-828c-4133c575f3c1
2025-12-09 13:27:57,754 - DEBUG - ==>Verifying data for policy with id: 2ebb98eb-7553-4316-9be9-2df96d55d155, fqn: ['default-domain', 'ctest-TestBasicPolicy-22497653', 'ctest-policy-allow-all-82000745']
2025-12-09 13:27:57,755 - INFO - VN ctest-vn-68339879 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 13:27:57,755 - DEBUG - Verifying the vn in opserver
2025-12-09 13:27:57,755 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-68339879 virtual network link through opserver 10.0.0.38
2025-12-09 13:27:57,755 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 13:27:57,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-68339879', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-68339879?flat'}
2025-12-09 13:27:57,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22497653:ctest-vn-68339879 is found in opserver
2025-12-09 13:27:57,776 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 13:27:57,781 - DEBUG - VRF ids for VN ctest-vn-68339879: {}
2025-12-09 13:27:57,843 - DEBUG - Services list from nova: [