2025-06-10 09:36:52,520 - INFO - Domain Default found not creating
2025-06-10 09:36:52,660 - INFO - Project ctest-TestBasicPolicy-21418406 not found, creating it
2025-06-10 09:36:53,120 - INFO - Created Project:ctest-TestBasicPolicy-21418406, ID : a20dbce5-2e89-4732-9b3f-d0b85cbc7f66
2025-06-10 09:36:54,541 - INFO - ================================================================================
2025-06-10 09:36:54,541 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 09:36:54,541 - 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 09:36:54,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-06-10 09:36:54,797 - INFO - Initial checks done. Running the testcase now
2025-06-10 09:36:54,797 - INFO -
2025-06-10 09:36:55,376 - DEBUG - Response for create_network : {'network': {'id': '07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f', 'name': 'ctest-vn-51280727', 'tenant_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'project_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-vn-51280727'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:36:55,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '5928ff88-0368-4bb0-8f14-ce12ecb68794', 'name': '', 'tenant_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'network_id': '07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f', 'ip_version': 4, 'cidr': '53.31.127.128/26', 'allocation_pools': [{'start': '53.31.127.130', 'end': '53.31.127.190'}], 'gateway_ip': '53.31.127.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.31.127.130', 'tags': [], 'project_id': 'a20dbce52e8947329b3fd0b85cbc7f66'}}
2025-06-10 09:36:55,596 - INFO - Created VN ctest-vn-51280727
2025-06-10 09:36:55,647 - DEBUG - VN ctest-vn-51280727 UUID is 07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:55,983 - DEBUG - Response for create_network : {'network': {'id': 'c8e38d36-dd14-4155-93e3-49fcdaac6e0d', 'name': 'ctest-vn-88662513', 'tenant_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'project_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-vn-88662513'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:36:56,155 - DEBUG - Response for create_subnet : {'subnet': {'id': '9156ef79-dc43-4731-92c9-df38ae932077', 'name': '', 'tenant_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'network_id': 'c8e38d36-dd14-4155-93e3-49fcdaac6e0d', 'ip_version': 4, 'cidr': '28.156.31.192/26', 'allocation_pools': [{'start': '28.156.31.194', 'end': '28.156.31.254'}], 'gateway_ip': '28.156.31.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.156.31.194', 'tags': [], 'project_id': 'a20dbce52e8947329b3fd0b85cbc7f66'}}
2025-06-10 09:36:56,171 - INFO - Created VN ctest-vn-88662513
2025-06-10 09:36:56,223 - DEBUG - VN ctest-vn-88662513 UUID is c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:56,412 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-51280727, 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-21418406:ctest-vn-88662513, 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 09:36:56,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f', 'name': 'ctest-vn-51280727', 'tenant_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'project_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5928ff88-0368-4bb0-8f14-ce12ecb68794'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-vn-51280727'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-policy-allow-all-43621361']], 'subnet_ipam': [{'subnet_cidr': '53.31.127.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:36:56,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8e38d36-dd14-4155-93e3-49fcdaac6e0d', 'name': 'ctest-vn-88662513', 'tenant_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'project_id': 'a20dbce52e8947329b3fd0b85cbc7f66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9156ef79-dc43-4731-92c9-df38ae932077'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-vn-88662513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-policy-allow-all-43621361']], 'subnet_ipam': [{'subnet_cidr': '28.156.31.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:36:57,115 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 09:36:57,413 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 09:36:57,443 - DEBUG - Requesting: http://10.0.0.65:8082/domain/5f1e0883-4b0d-4a2d-a890-7b1b04890a66
2025-06-10 09:36:57,457 - DEBUG - Requesting: http://10.0.0.65:8082/project/a20dbce5-2e89-4732-9b3f-d0b85cbc7f66
2025-06-10 09:36:57,531 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:57,542 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:57,555 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/493e60c5-b85c-4020-86c9-4b0dfa774baa
2025-06-10 09:36:57,563 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/493e60c5-b85c-4020-86c9-4b0dfa774baa
2025-06-10 09:36:57,583 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fbc74121-f7f2-4a42-988b-c631ada6028d
2025-06-10 09:36:57,590 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 09:36:57,590 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:57,600 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/493e60c5-b85c-4020-86c9-4b0dfa774baa
2025-06-10 09:36:57,618 - INFO - Verified VN network id 8 for VN 07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:57,618 - INFO - Verifications in API Server for VN ctest-vn-51280727 passed
2025-06-10 09:36:57,618 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:57,629 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/493e60c5-b85c-4020-86c9-4b0dfa774baa
2025-06-10 09:36:57,636 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/493e60c5-b85c-4020-86c9-4b0dfa774baa
2025-06-10 09:36:57,644 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fbc74121-f7f2-4a42-988b-c631ada6028d
2025-06-10 09:36:57,658 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-51280727', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21418406', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '552434970870370103', 'uuid-lslong': '9968872539344181551'}, 'enable': 'true', 'created': '2025-06-10T09:36:55', 'last-modified': '2025-06-10T09:36:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980176'}
2025-06-10 09:36:57,666 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 09:36:57,666 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51280727 passed
2025-06-10 09:36:57,666 - DEBUG - ====Verifying policy data for ctest-vn-51280727 in API_Server ======
2025-06-10 09:36:57,666 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 09:36:57,673 - DEBUG - Requesting: http://10.0.0.65:8082/domain/5f1e0883-4b0d-4a2d-a890-7b1b04890a66
2025-06-10 09:36:57,684 - DEBUG - Requesting: http://10.0.0.65:8082/project/a20dbce5-2e89-4732-9b3f-d0b85cbc7f66
2025-06-10 09:36:57,758 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/07aaa4ad-d83b-4f37-8a58-8cc1d6c1992f
2025-06-10 09:36:57,767 - DEBUG - ==>Verifying data for policy with id: dae0315a-5c85-484f-91d2-783372109a17, fqn: ['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-policy-allow-all-43621361']
2025-06-10 09:36:57,768 - INFO - VN ctest-vn-51280727 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 09:36:57,768 - DEBUG - Verifying the vn in opserver
2025-06-10 09:36:57,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-51280727 virtual network link through opserver 10.0.0.65
2025-06-10 09:36:57,768 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 09:36:58,064 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 09:36:58,117 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-51280727', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-51280727?flat'}
2025-06-10 09:36:58,117 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-51280727 is found in opserver
2025-06-10 09:36:58,128 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 09:36:58,134 - DEBUG - VRF ids for VN ctest-vn-51280727: {}
2025-06-10 09:36:58,134 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 09:36:58,139 - DEBUG - Requesting: http://10.0.0.65:8082/domain/5f1e0883-4b0d-4a2d-a890-7b1b04890a66
2025-06-10 09:36:58,150 - DEBUG - Requesting: http://10.0.0.65:8082/project/a20dbce5-2e89-4732-9b3f-d0b85cbc7f66
2025-06-10 09:36:58,221 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:58,233 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:58,242 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/adc9b23b-8748-4d9a-a652-e58523f9ba3b
2025-06-10 09:36:58,249 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/adc9b23b-8748-4d9a-a652-e58523f9ba3b
2025-06-10 09:36:58,257 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/af7b04e3-6a87-4359-b646-55b721ae9bc0
2025-06-10 09:36:58,265 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 09:36:58,265 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:58,275 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/adc9b23b-8748-4d9a-a652-e58523f9ba3b
2025-06-10 09:36:58,289 - INFO - Verified VN network id 9 for VN c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:58,289 - INFO - Verifications in API Server for VN ctest-vn-88662513 passed
2025-06-10 09:36:58,289 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:58,299 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/adc9b23b-8748-4d9a-a652-e58523f9ba3b
2025-06-10 09:36:58,307 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/adc9b23b-8748-4d9a-a652-e58523f9ba3b
2025-06-10 09:36:58,315 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/af7b04e3-6a87-4359-b646-55b721ae9bc0
2025-06-10 09:36:58,329 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-88662513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21418406', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14475568894075748693', 'uuid-lslong': '10656442493638045197'}, 'enable': 'true', 'created': '2025-06-10T09:36:55', 'last-modified': '2025-06-10T09:36:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411000'}
2025-06-10 09:36:58,336 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 09:36:58,336 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88662513 passed
2025-06-10 09:36:58,337 - DEBUG - ====Verifying policy data for ctest-vn-88662513 in API_Server ======
2025-06-10 09:36:58,337 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 09:36:58,343 - DEBUG - Requesting: http://10.0.0.65:8082/domain/5f1e0883-4b0d-4a2d-a890-7b1b04890a66
2025-06-10 09:36:58,354 - DEBUG - Requesting: http://10.0.0.65:8082/project/a20dbce5-2e89-4732-9b3f-d0b85cbc7f66
2025-06-10 09:36:58,425 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c8e38d36-dd14-4155-93e3-49fcdaac6e0d
2025-06-10 09:36:58,435 - DEBUG - ==>Verifying data for policy with id: dae0315a-5c85-484f-91d2-783372109a17, fqn: ['default-domain', 'ctest-TestBasicPolicy-21418406', 'ctest-policy-allow-all-43621361']
2025-06-10 09:36:58,435 - INFO - VN ctest-vn-88662513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 09:36:58,435 - DEBUG - Verifying the vn in opserver
2025-06-10 09:36:58,435 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-88662513 virtual network link through opserver 10.0.0.65
2025-06-10 09:36:58,435 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 09:36:58,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-88662513', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-88662513?flat'}
2025-06-10 09:36:58,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21418406:ctest-vn-88662513 is found in opserver
2025-06-10 09:36:58,455 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 09:36:58,460 - DEBUG - VRF ids for VN ctest-vn-88662513: {}
2025-06-10 09:36:58,513 - DEBUG - Services list from nova: [