2025-06-10 14:45:48,243 - INFO - Domain Default found not creating
2025-06-10 14:45:48,415 - INFO - Project ctest-TestBasicPolicy-69654912 not found, creating it
2025-06-10 14:45:48,936 - INFO - Created Project:ctest-TestBasicPolicy-69654912, ID : 14b605c8-22c3-4520-9059-932473d64407
2025-06-10 14:45:50,566 - INFO - ================================================================================
2025-06-10 14:45:50,566 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 14:45:50,566 - 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-06-10 14:45:50,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-06-10 14:45:50,825 - INFO - Initial checks done. Running the testcase now
2025-06-10 14:45:50,826 - INFO -
2025-06-10 14:45:51,427 - DEBUG - Response for create_network : {'network': {'id': '6dd8e7ac-9dd4-4031-88fe-c039116dd42f', 'name': 'ctest-vn-33534274', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-33534274'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 14:45:51,615 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2d5a18f-e8f1-4f53-a1f6-b3dc4ab697a7', 'name': '', 'tenant_id': '14b605c822c345209059932473d64407', 'network_id': '6dd8e7ac-9dd4-4031-88fe-c039116dd42f', 'ip_version': 4, 'cidr': '157.129.211.128/26', 'allocation_pools': [{'start': '157.129.211.130', 'end': '157.129.211.190'}], 'gateway_ip': '157.129.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.129.211.130', 'tags': [], 'project_id': '14b605c822c345209059932473d64407'}}
2025-06-10 14:45:51,636 - INFO - Created VN ctest-vn-33534274
2025-06-10 14:45:51,691 - DEBUG - VN ctest-vn-33534274 UUID is 6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:52,013 - DEBUG - Response for create_network : {'network': {'id': 'f6b74601-2e56-4d18-98f5-231212eedaec', 'name': 'ctest-vn-95066306', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-95066306'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 14:45:52,209 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cde030cf-4d04-43f8-8496-e394afa3a01c', 'name': '', 'tenant_id': '14b605c822c345209059932473d64407', 'network_id': 'f6b74601-2e56-4d18-98f5-231212eedaec', 'ip_version': 4, 'cidr': '173.34.254.0/26', 'allocation_pools': [{'start': '173.34.254.2', 'end': '173.34.254.62'}], 'gateway_ip': '173.34.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.34.254.2', 'tags': [], 'project_id': '14b605c822c345209059932473d64407'}}
2025-06-10 14:45:52,231 - INFO - Created VN ctest-vn-95066306
2025-06-10 14:45:52,286 - DEBUG - VN ctest-vn-95066306 UUID is f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:52,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274, 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-69654912:ctest-vn-95066306, 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-06-10 14:45:52,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dd8e7ac-9dd4-4031-88fe-c039116dd42f', 'name': 'ctest-vn-33534274', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2d5a18f-e8f1-4f53-a1f6-b3dc4ab697a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-33534274'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218']], 'subnet_ipam': [{'subnet_cidr': '157.129.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 14:45:52,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6b74601-2e56-4d18-98f5-231212eedaec', 'name': 'ctest-vn-95066306', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cde030cf-4d04-43f8-8496-e394afa3a01c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-95066306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218']], 'subnet_ipam': [{'subnet_cidr': '173.34.254.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 14:45:53,151 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-10 14:45:53,502 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-10 14:45:53,534 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6
2025-06-10 14:45:53,549 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407
2025-06-10 14:45:53,642 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:53,662 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:53,673 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86
2025-06-10 14:45:53,683 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86
2025-06-10 14:45:53,692 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1ce90949-60ae-4ff5-ad5e-9f91577508fd
2025-06-10 14:45:53,700 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 14:45:53,700 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:53,711 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86
2025-06-10 14:45:53,729 - INFO - Verified VN network id 9 for VN 6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:53,729 - INFO - Verifications in API Server for VN ctest-vn-33534274 passed
2025-06-10 14:45:53,729 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:53,740 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86
2025-06-10 14:45:53,749 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86
2025-06-10 14:45:53,757 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1ce90949-60ae-4ff5-ad5e-9f91577508fd
2025-06-10 14:45:53,773 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69654912', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7915331073671970865', 'uuid-lslong': '9871538784580785199'}, 'enable': 'true', 'created': '2025-06-10T14:45:51', 'last-modified': '2025-06-10T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086952'}
2025-06-10 14:45:53,780 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 14:45:53,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33534274 passed
2025-06-10 14:45:53,781 - DEBUG - ====Verifying policy data for ctest-vn-33534274 in API_Server ======
2025-06-10 14:45:53,781 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-10 14:45:53,787 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6
2025-06-10 14:45:53,800 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407
2025-06-10 14:45:53,879 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f
2025-06-10 14:45:53,892 - DEBUG - ==>Verifying data for policy with id: e56d15b7-6721-4def-b50a-e48a5697ff70, fqn: ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218']
2025-06-10 14:45:53,893 - INFO - VN ctest-vn-33534274 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 14:45:53,893 - DEBUG - Verifying the vn in opserver
2025-06-10 14:45:53,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274 virtual network link through opserver 10.0.0.49
2025-06-10 14:45:53,893 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-10 14:45:54,227 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-10 14:45:54,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274?flat'}
2025-06-10 14:45:54,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274 is found in opserver
2025-06-10 14:45:54,299 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 14:45:54,305 - DEBUG - VRF ids for VN ctest-vn-33534274: {}
2025-06-10 14:45:54,305 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-10 14:45:54,311 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6
2025-06-10 14:45:54,324 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407
2025-06-10 14:45:54,399 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:54,412 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:54,423 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90
2025-06-10 14:45:54,432 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90
2025-06-10 14:45:54,440 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cfa7a043-e025-4563-be63-442a2d50dc17
2025-06-10 14:45:54,448 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 14:45:54,448 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:54,460 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90
2025-06-10 14:45:54,476 - INFO - Verified VN network id 10 for VN f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:54,476 - INFO - Verifications in API Server for VN ctest-vn-95066306 passed
2025-06-10 14:45:54,476 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:54,489 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90
2025-06-10 14:45:54,498 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90
2025-06-10 14:45:54,506 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cfa7a043-e025-4563-be63-442a2d50dc17
2025-06-10 14:45:54,521 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69654912', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17777755024954641688', 'uuid-lslong': '11021754223593183980'}, 'enable': 'true', 'created': '2025-06-10T14:45:51', 'last-modified': '2025-06-10T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.583333'}
2025-06-10 14:45:54,528 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 14:45:54,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95066306 passed
2025-06-10 14:45:54,528 - DEBUG - ====Verifying policy data for ctest-vn-95066306 in API_Server ======
2025-06-10 14:45:54,528 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-10 14:45:54,534 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6
2025-06-10 14:45:54,548 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407
2025-06-10 14:45:54,624 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec
2025-06-10 14:45:54,636 - DEBUG - ==>Verifying data for policy with id: e56d15b7-6721-4def-b50a-e48a5697ff70, fqn: ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218']
2025-06-10 14:45:54,636 - INFO - VN ctest-vn-95066306 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 14:45:54,636 - DEBUG - Verifying the vn in opserver
2025-06-10 14:45:54,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306 virtual network link through opserver 10.0.0.49
2025-06-10 14:45:54,636 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-10 14:45:54,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306?flat'}
2025-06-10 14:45:54,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306 is found in opserver
2025-06-10 14:45:54,664 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 14:45:54,671 - DEBUG - VRF ids for VN ctest-vn-95066306: {}
2025-06-10 14:45:54,742 - DEBUG - Services list from nova: [