2025-02-04 07:04:46,319 - INFO - Domain Default found not creating
2025-02-04 07:04:46,461 - INFO - Project ctest-TestBasicPolicy-83953764 not found, creating it
2025-02-04 07:04:46,949 - INFO - Created Project:ctest-TestBasicPolicy-83953764, ID : eef6e7cf-88ec-44c0-9e98-2720c67c1dd3
2025-02-04 07:04:48,476 - INFO - ================================================================================
2025-02-04 07:04:48,476 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-04 07:04:48,476 - 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-02-04 07:04:48,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with
2025-02-04 07:04:48,733 - INFO - Initial checks done. Running the testcase now
2025-02-04 07:04:48,733 - INFO -
2025-02-04 07:04:49,312 - DEBUG - Response for create_network : {'network': {'id': 'c18a17ba-01bb-4ef2-a94a-9aa79ffe4def', 'name': 'ctest-vn-62335788', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-62335788'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 07:04:49,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '804f3aa8-8015-4cd8-af66-b446d688fad7', 'name': '', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'network_id': 'c18a17ba-01bb-4ef2-a94a-9aa79ffe4def', 'ip_version': 4, 'cidr': '79.134.92.0/26', 'allocation_pools': [{'start': '79.134.92.2', 'end': '79.134.92.62'}], 'gateway_ip': '79.134.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.134.92.2', 'tags': [], 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3'}}
2025-02-04 07:04:49,588 - INFO - Created VN ctest-vn-62335788
2025-02-04 07:04:49,643 - DEBUG - VN ctest-vn-62335788 UUID is c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:49,925 - DEBUG - Response for create_network : {'network': {'id': '2dfeb303-9a47-41a4-b37a-348c1fede4f6', 'name': 'ctest-vn-31006461', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-31006461'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 07:04:50,097 - DEBUG - Response for create_subnet : {'subnet': {'id': '94fb9ebf-5e64-49d6-8e34-0c0516426c74', 'name': '', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'network_id': '2dfeb303-9a47-41a4-b37a-348c1fede4f6', 'ip_version': 4, 'cidr': '85.0.227.192/26', 'allocation_pools': [{'start': '85.0.227.194', 'end': '85.0.227.254'}], 'gateway_ip': '85.0.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.0.227.194', 'tags': [], 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3'}}
2025-02-04 07:04:50,115 - INFO - Created VN ctest-vn-31006461
2025-02-04 07:04:50,167 - DEBUG - VN ctest-vn-31006461 UUID is 2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:50,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788, 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-83953764:ctest-vn-31006461, 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-02-04 07:04:50,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c18a17ba-01bb-4ef2-a94a-9aa79ffe4def', 'name': 'ctest-vn-62335788', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['804f3aa8-8015-4cd8-af66-b446d688fad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-62335788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572']], 'subnet_ipam': [{'subnet_cidr': '79.134.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 07:04:50,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dfeb303-9a47-41a4-b37a-348c1fede4f6', 'name': 'ctest-vn-31006461', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94fb9ebf-5e64-49d6-8e34-0c0516426c74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-31006461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572']], 'subnet_ipam': [{'subnet_cidr': '85.0.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 07:04:50,983 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-04 07:04:51,282 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-04 07:04:51,309 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252
2025-02-04 07:04:51,323 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3
2025-02-04 07:04:51,395 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:51,407 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:51,416 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215
2025-02-04 07:04:51,424 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215
2025-02-04 07:04:51,432 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d9ac6497-cf8b-4003-9727-e5e1dc038bcf
2025-02-04 07:04:51,438 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-04 07:04:51,438 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:51,450 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215
2025-02-04 07:04:51,466 - INFO - Verified VN network id 8 for VN c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:51,466 - INFO - Verifications in API Server for VN ctest-vn-62335788 passed
2025-02-04 07:04:51,466 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:51,478 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215
2025-02-04 07:04:51,486 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215
2025-02-04 07:04:51,494 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d9ac6497-cf8b-4003-9727-e5e1dc038bcf
2025-02-04 07:04:51,508 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83953764', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13945985283766570738', 'uuid-lslong': '12198732585420869103'}, 'enable': 'true', 'created': '2025-02-04T07:04:49', 'last-modified': '2025-02-04T07:04:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949684'}
2025-02-04 07:04:51,515 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-04 07:04:51,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62335788 passed
2025-02-04 07:04:51,515 - DEBUG - ====Verifying policy data for ctest-vn-62335788 in API_Server ======
2025-02-04 07:04:51,515 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-04 07:04:51,521 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252
2025-02-04 07:04:51,537 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3
2025-02-04 07:04:51,623 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def
2025-02-04 07:04:51,636 - DEBUG - ==>Verifying data for policy with id: 5870c8b8-de84-4ab2-924d-6f75dfc06062, fqn: ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572']
2025-02-04 07:04:51,636 - INFO - VN ctest-vn-62335788 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 07:04:51,636 - DEBUG - Verifying the vn in opserver
2025-02-04 07:04:51,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788 virtual network link through opserver 10.0.0.12
2025-02-04 07:04:51,636 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-04 07:04:51,928 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-04 07:04:51,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788?flat'}
2025-02-04 07:04:51,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788 is found in opserver
2025-02-04 07:04:52,000 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 07:04:52,014 - DEBUG - VRF ids for VN ctest-vn-62335788: {}
2025-02-04 07:04:52,014 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-04 07:04:52,021 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252
2025-02-04 07:04:52,034 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3
2025-02-04 07:04:52,111 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:52,126 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:52,138 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc
2025-02-04 07:04:52,147 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc
2025-02-04 07:04:52,156 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/82ab22c4-8124-49c3-9148-8dc65210aa61
2025-02-04 07:04:52,164 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 07:04:52,164 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:52,177 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc
2025-02-04 07:04:52,192 - INFO - Verified VN network id 9 for VN 2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:52,193 - INFO - Verifications in API Server for VN ctest-vn-31006461 passed
2025-02-04 07:04:52,193 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:52,203 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc
2025-02-04 07:04:52,212 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc
2025-02-04 07:04:52,221 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/82ab22c4-8124-49c3-9148-8dc65210aa61
2025-02-04 07:04:52,237 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83953764', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3314283203845898660', 'uuid-lslong': '12932707056383550710'}, 'enable': 'true', 'created': '2025-02-04T07:04:49', 'last-modified': '2025-02-04T07:04:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443060'}
2025-02-04 07:04:52,244 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 07:04:52,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31006461 passed
2025-02-04 07:04:52,244 - DEBUG - ====Verifying policy data for ctest-vn-31006461 in API_Server ======
2025-02-04 07:04:52,245 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-04 07:04:52,251 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252
2025-02-04 07:04:52,263 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3
2025-02-04 07:04:52,339 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6
2025-02-04 07:04:52,349 - DEBUG - ==>Verifying data for policy with id: 5870c8b8-de84-4ab2-924d-6f75dfc06062, fqn: ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572']
2025-02-04 07:04:52,349 - INFO - VN ctest-vn-31006461 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 07:04:52,349 - DEBUG - Verifying the vn in opserver
2025-02-04 07:04:52,349 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461 virtual network link through opserver 10.0.0.12
2025-02-04 07:04:52,349 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-04 07:04:52,361 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461?flat'}
2025-02-04 07:04:52,361 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461 is found in opserver
2025-02-04 07:04:52,372 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 07:04:52,377 - DEBUG - VRF ids for VN ctest-vn-31006461: {}
2025-02-04 07:04:52,432 - DEBUG - Services list from nova: [