2025-01-13 09:14:55,329 - INFO - Domain Default found not creating
2025-01-13 09:14:55,475 - INFO - Project ctest-TestBasicPolicy-10244260 not found, creating it
2025-01-13 09:14:55,954 - INFO - Created Project:ctest-TestBasicPolicy-10244260, ID : 4821ec86-1980-4e45-8087-edd366d7a659
2025-01-13 09:14:57,430 - INFO - ================================================================================
2025-01-13 09:14:57,430 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 09:14:57,430 - 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-01-13 09:14:57,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with
2025-01-13 09:14:57,693 - INFO - Initial checks done. Running the testcase now
2025-01-13 09:14:57,693 - INFO -
2025-01-13 09:14:58,242 - DEBUG - Response for create_network : {'network': {'id': '9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b', 'name': 'ctest-vn-66609779', 'tenant_id': '4821ec8619804e458087edd366d7a659', 'project_id': '4821ec8619804e458087edd366d7a659', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-vn-66609779'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 09:14:58,438 - DEBUG - Response for create_subnet : {'subnet': {'id': '8365c0d0-9495-467c-a4c9-6d62384c6ea4', 'name': '', 'tenant_id': '4821ec8619804e458087edd366d7a659', 'network_id': '9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b', 'ip_version': 4, 'cidr': '115.2.8.64/26', 'allocation_pools': [{'start': '115.2.8.66', 'end': '115.2.8.126'}], 'gateway_ip': '115.2.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.2.8.66', 'tags': [], 'project_id': '4821ec8619804e458087edd366d7a659'}}
2025-01-13 09:14:58,456 - INFO - Created VN ctest-vn-66609779
2025-01-13 09:14:58,510 - DEBUG - VN ctest-vn-66609779 UUID is 9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:14:58,799 - DEBUG - Response for create_network : {'network': {'id': 'cb69dff7-3778-4122-9e30-7847986a16d4', 'name': 'ctest-vn-29256317', 'tenant_id': '4821ec8619804e458087edd366d7a659', 'project_id': '4821ec8619804e458087edd366d7a659', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-vn-29256317'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 09:14:58,980 - DEBUG - Response for create_subnet : {'subnet': {'id': '36710fcf-afd1-4fc9-bffe-f92973da7903', 'name': '', 'tenant_id': '4821ec8619804e458087edd366d7a659', 'network_id': 'cb69dff7-3778-4122-9e30-7847986a16d4', 'ip_version': 4, 'cidr': '110.161.145.64/26', 'allocation_pools': [{'start': '110.161.145.66', 'end': '110.161.145.126'}], 'gateway_ip': '110.161.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.161.145.66', 'tags': [], 'project_id': '4821ec8619804e458087edd366d7a659'}}
2025-01-13 09:14:58,999 - INFO - Created VN ctest-vn-29256317
2025-01-13 09:14:59,054 - DEBUG - VN ctest-vn-29256317 UUID is cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:14:59,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-66609779, 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-10244260:ctest-vn-29256317, 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-01-13 09:14:59,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b', 'name': 'ctest-vn-66609779', 'tenant_id': '4821ec8619804e458087edd366d7a659', 'project_id': '4821ec8619804e458087edd366d7a659', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8365c0d0-9495-467c-a4c9-6d62384c6ea4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-vn-66609779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-policy-allow-all-04130724']], 'subnet_ipam': [{'subnet_cidr': '115.2.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 09:14:59,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb69dff7-3778-4122-9e30-7847986a16d4', 'name': 'ctest-vn-29256317', 'tenant_id': '4821ec8619804e458087edd366d7a659', 'project_id': '4821ec8619804e458087edd366d7a659', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36710fcf-afd1-4fc9-bffe-f92973da7903'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-vn-29256317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-policy-allow-all-04130724']], 'subnet_ipam': [{'subnet_cidr': '110.161.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 09:14:59,902 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-13 09:15:00,205 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-13 09:15:00,233 - DEBUG - Requesting: http://10.0.0.34:8082/domain/710c8bc4-5af6-42e7-89df-b637c7675abc
2025-01-13 09:15:00,246 - DEBUG - Requesting: http://10.0.0.34:8082/project/4821ec86-1980-4e45-8087-edd366d7a659
2025-01-13 09:15:00,321 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:15:00,335 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:15:00,346 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/301f9633-9249-4fec-ae59-5a53f4b62532
2025-01-13 09:15:00,355 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/301f9633-9249-4fec-ae59-5a53f4b62532
2025-01-13 09:15:00,364 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ce9745d6-0e0e-407f-80ab-fb61a9723f63
2025-01-13 09:15:00,372 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 09:15:00,372 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:15:00,381 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/301f9633-9249-4fec-ae59-5a53f4b62532
2025-01-13 09:15:00,399 - INFO - Verified VN network id 8 for VN 9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:15:00,399 - INFO - Verifications in API Server for VN ctest-vn-66609779 passed
2025-01-13 09:15:00,400 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:15:00,410 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/301f9633-9249-4fec-ae59-5a53f4b62532
2025-01-13 09:15:00,417 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/301f9633-9249-4fec-ae59-5a53f4b62532
2025-01-13 09:15:00,425 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ce9745d6-0e0e-407f-80ab-fb61a9723f63
2025-01-13 09:15:00,440 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-66609779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10244260', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11164685151632772394', 'uuid-lslong': '12808156216479698779'}, 'enable': 'true', 'created': '2025-01-13T09:14:58', 'last-modified': '2025-01-13T09:14:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990851'}
2025-01-13 09:15:00,447 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 09:15:00,448 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66609779 passed
2025-01-13 09:15:00,448 - DEBUG - ====Verifying policy data for ctest-vn-66609779 in API_Server ======
2025-01-13 09:15:00,448 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-13 09:15:00,454 - DEBUG - Requesting: http://10.0.0.34:8082/domain/710c8bc4-5af6-42e7-89df-b637c7675abc
2025-01-13 09:15:00,467 - DEBUG - Requesting: http://10.0.0.34:8082/project/4821ec86-1980-4e45-8087-edd366d7a659
2025-01-13 09:15:00,548 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/9af0edfe-0c26-4d2a-b1bf-b637e6fbcf5b
2025-01-13 09:15:00,558 - DEBUG - ==>Verifying data for policy with id: 0cc9a009-473f-45ae-93a4-10930b308d69, fqn: ['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-policy-allow-all-04130724']
2025-01-13 09:15:00,558 - INFO - VN ctest-vn-66609779 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 09:15:00,558 - DEBUG - Verifying the vn in opserver
2025-01-13 09:15:00,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-66609779 virtual network link through opserver 10.0.0.34
2025-01-13 09:15:00,559 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-13 09:15:00,863 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-13 09:15:00,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-66609779', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-66609779?flat'}
2025-01-13 09:15:00,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-66609779 is found in opserver
2025-01-13 09:15:00,936 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 09:15:00,942 - DEBUG - VRF ids for VN ctest-vn-66609779: {}
2025-01-13 09:15:00,942 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-13 09:15:00,949 - DEBUG - Requesting: http://10.0.0.34:8082/domain/710c8bc4-5af6-42e7-89df-b637c7675abc
2025-01-13 09:15:00,960 - DEBUG - Requesting: http://10.0.0.34:8082/project/4821ec86-1980-4e45-8087-edd366d7a659
2025-01-13 09:15:01,042 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:15:01,058 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:15:01,070 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d94498c6-6c90-483e-bae7-c6caa1a2e38a
2025-01-13 09:15:01,078 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d94498c6-6c90-483e-bae7-c6caa1a2e38a
2025-01-13 09:15:01,086 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/1f059824-a72d-494c-9d61-d8899a428f67
2025-01-13 09:15:01,095 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 09:15:01,095 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:15:01,107 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d94498c6-6c90-483e-bae7-c6caa1a2e38a
2025-01-13 09:15:01,126 - INFO - Verified VN network id 9 for VN cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:15:01,126 - INFO - Verifications in API Server for VN ctest-vn-29256317 passed
2025-01-13 09:15:01,127 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:15:01,139 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d94498c6-6c90-483e-bae7-c6caa1a2e38a
2025-01-13 09:15:01,147 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d94498c6-6c90-483e-bae7-c6caa1a2e38a
2025-01-13 09:15:01,155 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/1f059824-a72d-494c-9d61-d8899a428f67
2025-01-13 09:15:01,169 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-29256317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10244260', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14657492715134533922', 'uuid-lslong': '11398742905769826004'}, 'enable': 'true', 'created': '2025-01-13T09:14:58', 'last-modified': '2025-01-13T09:14:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484766'}
2025-01-13 09:15:01,178 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 09:15:01,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29256317 passed
2025-01-13 09:15:01,178 - DEBUG - ====Verifying policy data for ctest-vn-29256317 in API_Server ======
2025-01-13 09:15:01,178 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-13 09:15:01,185 - DEBUG - Requesting: http://10.0.0.34:8082/domain/710c8bc4-5af6-42e7-89df-b637c7675abc
2025-01-13 09:15:01,200 - DEBUG - Requesting: http://10.0.0.34:8082/project/4821ec86-1980-4e45-8087-edd366d7a659
2025-01-13 09:15:01,278 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/cb69dff7-3778-4122-9e30-7847986a16d4
2025-01-13 09:15:01,288 - DEBUG - ==>Verifying data for policy with id: 0cc9a009-473f-45ae-93a4-10930b308d69, fqn: ['default-domain', 'ctest-TestBasicPolicy-10244260', 'ctest-policy-allow-all-04130724']
2025-01-13 09:15:01,288 - INFO - VN ctest-vn-29256317 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 09:15:01,289 - DEBUG - Verifying the vn in opserver
2025-01-13 09:15:01,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-29256317 virtual network link through opserver 10.0.0.34
2025-01-13 09:15:01,289 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-13 09:15:01,300 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-29256317', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-29256317?flat'}
2025-01-13 09:15:01,300 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10244260:ctest-vn-29256317 is found in opserver
2025-01-13 09:15:01,311 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 09:15:01,317 - DEBUG - VRF ids for VN ctest-vn-29256317: {}
2025-01-13 09:15:01,374 - DEBUG - Services list from nova: [