2025-08-08 02:59:53,728 - INFO - Domain Default found not creating
2025-08-08 02:59:53,872 - INFO - Project ctest-TestBasicPolicy-03377469 not found, creating it
2025-08-08 02:59:54,308 - INFO - Created Project:ctest-TestBasicPolicy-03377469, ID : 988d5233-4918-4d3e-8740-b2e5d1233bf5
2025-08-08 02:59:55,846 - INFO - ================================================================================
2025-08-08 02:59:55,846 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-08 02:59:55,846 - 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-08 02:59:56,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-08 02:59:56,114 - INFO - Initial checks done. Running the testcase now
2025-08-08 02:59:56,115 - INFO -
2025-08-08 02:59:56,734 - DEBUG - Response for create_network : {'network': {'id': 'cea63e33-37da-423b-8ef1-3cc2e136e026', 'name': 'ctest-vn-42589215', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-42589215'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 02:59:56,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc586212-13f6-47a5-a1ea-42a7f93df298', 'name': '', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'network_id': 'cea63e33-37da-423b-8ef1-3cc2e136e026', 'ip_version': 4, 'cidr': '173.150.78.64/26', 'allocation_pools': [{'start': '173.150.78.66', 'end': '173.150.78.126'}], 'gateway_ip': '173.150.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.150.78.66', 'tags': [], 'project_id': '988d523349184d3e8740b2e5d1233bf5'}}
2025-08-08 02:59:56,962 - INFO - Created VN ctest-vn-42589215
2025-08-08 02:59:57,013 - DEBUG - VN ctest-vn-42589215 UUID is cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:57,349 - DEBUG - Response for create_network : {'network': {'id': 'f8e31153-7a91-4aff-b75b-e19151d255e0', 'name': 'ctest-vn-82330870', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-82330870'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 02:59:57,563 - DEBUG - Response for create_subnet : {'subnet': {'id': '160bb994-409e-42c0-831b-425a5076a3ce', 'name': '', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'network_id': 'f8e31153-7a91-4aff-b75b-e19151d255e0', 'ip_version': 4, 'cidr': '107.37.40.0/26', 'allocation_pools': [{'start': '107.37.40.2', 'end': '107.37.40.62'}], 'gateway_ip': '107.37.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.37.40.2', 'tags': [], 'project_id': '988d523349184d3e8740b2e5d1233bf5'}}
2025-08-08 02:59:57,581 - INFO - Created VN ctest-vn-82330870
2025-08-08 02:59:57,633 - DEBUG - VN ctest-vn-82330870 UUID is f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:57,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215, 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-03377469:ctest-vn-82330870, 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-08 02:59:58,041 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cea63e33-37da-423b-8ef1-3cc2e136e026', 'name': 'ctest-vn-42589215', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc586212-13f6-47a5-a1ea-42a7f93df298'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-42589215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288']], 'subnet_ipam': [{'subnet_cidr': '173.150.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 02:59:58,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8e31153-7a91-4aff-b75b-e19151d255e0', 'name': 'ctest-vn-82330870', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['160bb994-409e-42c0-831b-425a5076a3ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-82330870'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288']], 'subnet_ipam': [{'subnet_cidr': '107.37.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 02:59:58,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 02:59:58,810 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 02:59:58,839 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719
2025-08-08 02:59:58,852 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5
2025-08-08 02:59:58,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:58,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:58,950 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d
2025-08-08 02:59:58,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d
2025-08-08 02:59:58,963 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/08ebdb56-1de0-4acb-b55f-8c79a879cfbe
2025-08-08 02:59:58,970 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 02:59:58,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:58,980 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d
2025-08-08 02:59:58,994 - INFO - Verified VN network id 11 for VN cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:58,994 - INFO - Verifications in API Server for VN ctest-vn-42589215 passed
2025-08-08 02:59:58,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:59,004 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d
2025-08-08 02:59:59,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d
2025-08-08 02:59:59,020 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/08ebdb56-1de0-4acb-b55f-8c79a879cfbe
2025-08-08 02:59:59,034 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03377469', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14890657607648428603', 'uuid-lslong': '10300080630472826918'}, 'enable': 'true', 'created': '2025-08-08T02:59:56', 'last-modified': '2025-08-08T02:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014390'}
2025-08-08 02:59:59,041 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 02:59:59,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42589215 passed
2025-08-08 02:59:59,041 - DEBUG - ====Verifying policy data for ctest-vn-42589215 in API_Server ======
2025-08-08 02:59:59,041 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 02:59:59,047 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719
2025-08-08 02:59:59,060 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5
2025-08-08 02:59:59,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026
2025-08-08 02:59:59,146 - DEBUG - ==>Verifying data for policy with id: 8b3cbd33-92e9-445b-ba5e-9e3ab990383a, fqn: ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288']
2025-08-08 02:59:59,146 - INFO - VN ctest-vn-42589215 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 02:59:59,146 - DEBUG - Verifying the vn in opserver
2025-08-08 02:59:59,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215 virtual network link through opserver 10.0.0.38
2025-08-08 02:59:59,147 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 02:59:59,482 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 02:59:59,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215?flat'}
2025-08-08 02:59:59,538 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215 is found in opserver
2025-08-08 02:59:59,550 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 02:59:59,555 - DEBUG - VRF ids for VN ctest-vn-42589215: {}
2025-08-08 02:59:59,555 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 02:59:59,561 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719
2025-08-08 02:59:59,572 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5
2025-08-08 02:59:59,645 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:59,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:59,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9
2025-08-08 02:59:59,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9
2025-08-08 02:59:59,681 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/548abac9-53b1-49ed-bbf2-108213c18f39
2025-08-08 02:59:59,688 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 02:59:59,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:59,698 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9
2025-08-08 02:59:59,711 - INFO - Verified VN network id 12 for VN f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:59,711 - INFO - Verifications in API Server for VN ctest-vn-82330870 passed
2025-08-08 02:59:59,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:59,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9
2025-08-08 02:59:59,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9
2025-08-08 02:59:59,734 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/548abac9-53b1-49ed-bbf2-108213c18f39
2025-08-08 02:59:59,748 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03377469', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17934197191355747071', 'uuid-lslong': '13212401946080728544'}, 'enable': 'true', 'created': '2025-08-08T02:59:57', 'last-modified': '2025-08-08T02:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.501396'}
2025-08-08 02:59:59,755 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 02:59:59,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82330870 passed
2025-08-08 02:59:59,755 - DEBUG - ====Verifying policy data for ctest-vn-82330870 in API_Server ======
2025-08-08 02:59:59,755 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 02:59:59,760 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719
2025-08-08 02:59:59,772 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5
2025-08-08 02:59:59,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0
2025-08-08 02:59:59,853 - DEBUG - ==>Verifying data for policy with id: 8b3cbd33-92e9-445b-ba5e-9e3ab990383a, fqn: ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288']
2025-08-08 02:59:59,853 - INFO - VN ctest-vn-82330870 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 02:59:59,853 - DEBUG - Verifying the vn in opserver
2025-08-08 02:59:59,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870 virtual network link through opserver 10.0.0.38
2025-08-08 02:59:59,854 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 02:59:59,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870?flat'}
2025-08-08 02:59:59,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870 is found in opserver
2025-08-08 02:59:59,875 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 02:59:59,880 - DEBUG - VRF ids for VN ctest-vn-82330870: {}
2025-08-08 02:59:59,931 - DEBUG - Services list from nova: [