2025-05-28 14:31:56,975 - INFO - Domain Default found not creating
2025-05-28 14:31:57,123 - INFO - Project ctest-TestBasicPolicy-13028091 not found, creating it
2025-05-28 14:31:57,600 - INFO - Created Project:ctest-TestBasicPolicy-13028091, ID : 5a4330c0-c46e-4e7d-b393-31032c8db87d
2025-05-28 14:31:59,185 - INFO - ================================================================================
2025-05-28 14:31:59,185 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-28 14:31:59,185 - 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-05-28 14:31:59,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-05-28 14:31:59,442 - INFO - Initial checks done. Running the testcase now
2025-05-28 14:31:59,442 - INFO -
2025-05-28 14:32:00,025 - DEBUG - Response for create_network : {'network': {'id': 'd00a44a3-08dc-4efa-97bb-627d92741c86', 'name': 'ctest-vn-64764660', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-64764660'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 14:32:00,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '41877977-09c2-45bd-b385-14dc570e6385', 'name': '', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'network_id': 'd00a44a3-08dc-4efa-97bb-627d92741c86', 'ip_version': 4, 'cidr': '168.102.122.0/26', 'allocation_pools': [{'start': '168.102.122.2', 'end': '168.102.122.62'}], 'gateway_ip': '168.102.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.102.122.2', 'tags': [], 'project_id': '5a4330c0c46e4e7db39331032c8db87d'}}
2025-05-28 14:32:00,203 - INFO - Created VN ctest-vn-64764660
2025-05-28 14:32:00,255 - DEBUG - VN ctest-vn-64764660 UUID is d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:00,538 - DEBUG - Response for create_network : {'network': {'id': '3131c46a-c6e7-4fe4-ac58-bfc0009ab488', 'name': 'ctest-vn-05311418', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-05311418'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 14:32:00,697 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd870676-7fba-4c1d-b1c5-6d833a4fd406', 'name': '', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'network_id': '3131c46a-c6e7-4fe4-ac58-bfc0009ab488', 'ip_version': 4, 'cidr': '184.173.50.0/26', 'allocation_pools': [{'start': '184.173.50.2', 'end': '184.173.50.62'}], 'gateway_ip': '184.173.50.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.173.50.2', 'tags': [], 'project_id': '5a4330c0c46e4e7db39331032c8db87d'}}
2025-05-28 14:32:00,716 - INFO - Created VN ctest-vn-05311418
2025-05-28 14:32:00,767 - DEBUG - VN ctest-vn-05311418 UUID is 3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:00,879 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660, 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-13028091:ctest-vn-05311418, 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-05-28 14:32:01,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd00a44a3-08dc-4efa-97bb-627d92741c86', 'name': 'ctest-vn-64764660', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41877977-09c2-45bd-b385-14dc570e6385'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-64764660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879']], 'subnet_ipam': [{'subnet_cidr': '168.102.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 14:32:01,430 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3131c46a-c6e7-4fe4-ac58-bfc0009ab488', 'name': 'ctest-vn-05311418', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd870676-7fba-4c1d-b1c5-6d833a4fd406'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-05311418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879']], 'subnet_ipam': [{'subnet_cidr': '184.173.50.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 14:32:01,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-28 14:32:01,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-28 14:32:01,941 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794
2025-05-28 14:32:01,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d
2025-05-28 14:32:02,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:02,043 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:02,053 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504
2025-05-28 14:32:02,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504
2025-05-28 14:32:02,070 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0890a02a-b859-4792-b73d-3f2b4c621364
2025-05-28 14:32:02,077 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 14:32:02,077 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:02,088 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504
2025-05-28 14:32:02,103 - INFO - Verified VN network id 8 for VN d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:02,103 - INFO - Verifications in API Server for VN ctest-vn-64764660 passed
2025-05-28 14:32:02,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:02,113 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504
2025-05-28 14:32:02,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504
2025-05-28 14:32:02,129 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0890a02a-b859-4792-b73d-3f2b4c621364
2025-05-28 14:32:02,144 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13028091', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14990869776675131130', 'uuid-lslong': '10933440811839528070'}, 'enable': 'true', 'created': '2025-05-28T14:31:59', 'last-modified': '2025-05-28T14:32:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982195'}
2025-05-28 14:32:02,151 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 14:32:02,151 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64764660 passed
2025-05-28 14:32:02,152 - DEBUG - ====Verifying policy data for ctest-vn-64764660 in API_Server ======
2025-05-28 14:32:02,152 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-28 14:32:02,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794
2025-05-28 14:32:02,174 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d
2025-05-28 14:32:02,250 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86
2025-05-28 14:32:02,261 - DEBUG - ==>Verifying data for policy with id: 47d92d52-c426-4e93-8eed-e77749c1bdb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879']
2025-05-28 14:32:02,261 - INFO - VN ctest-vn-64764660 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 14:32:02,261 - DEBUG - Verifying the vn in opserver
2025-05-28 14:32:02,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660 virtual network link through opserver 10.0.0.38
2025-05-28 14:32:02,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-28 14:32:02,594 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-28 14:32:02,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660?flat'}
2025-05-28 14:32:02,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660 is found in opserver
2025-05-28 14:32:02,662 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 14:32:02,667 - DEBUG - VRF ids for VN ctest-vn-64764660: {}
2025-05-28 14:32:02,667 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-28 14:32:02,673 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794
2025-05-28 14:32:02,685 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d
2025-05-28 14:32:02,756 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:02,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:02,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384
2025-05-28 14:32:02,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384
2025-05-28 14:32:02,800 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a239299a-1763-42e8-b983-6dc62f101cfe
2025-05-28 14:32:02,806 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 14:32:02,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:02,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384
2025-05-28 14:32:02,832 - INFO - Verified VN network id 9 for VN 3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:02,832 - INFO - Verifications in API Server for VN ctest-vn-05311418 passed
2025-05-28 14:32:02,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:02,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384
2025-05-28 14:32:02,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384
2025-05-28 14:32:02,859 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a239299a-1763-42e8-b983-6dc62f101cfe
2025-05-28 14:32:02,873 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13028091', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3544830344599916516', 'uuid-lslong': '12418886803838907528'}, 'enable': 'true', 'created': '2025-05-28T14:32:00', 'last-modified': '2025-05-28T14:32:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466647'}
2025-05-28 14:32:02,881 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 14:32:02,881 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05311418 passed
2025-05-28 14:32:02,882 - DEBUG - ====Verifying policy data for ctest-vn-05311418 in API_Server ======
2025-05-28 14:32:02,882 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-28 14:32:02,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794
2025-05-28 14:32:02,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d
2025-05-28 14:32:02,993 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488
2025-05-28 14:32:03,004 - DEBUG - ==>Verifying data for policy with id: 47d92d52-c426-4e93-8eed-e77749c1bdb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879']
2025-05-28 14:32:03,005 - INFO - VN ctest-vn-05311418 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 14:32:03,005 - DEBUG - Verifying the vn in opserver
2025-05-28 14:32:03,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418 virtual network link through opserver 10.0.0.38
2025-05-28 14:32:03,005 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-28 14:32:03,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418?flat'}
2025-05-28 14:32:03,017 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418 is found in opserver
2025-05-28 14:32:03,031 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 14:32:03,036 - DEBUG - VRF ids for VN ctest-vn-05311418: {}
2025-05-28 14:32:03,093 - DEBUG - Services list from nova: [