2025-01-14 22:18:03,083 - INFO - Domain Default found not creating
2025-01-14 22:18:03,228 - INFO - Project ctest-TestBasicPolicy-73707070 not found, creating it
2025-01-14 22:18:03,669 - INFO - Created Project:ctest-TestBasicPolicy-73707070, ID : 8ca9f196-a856-472c-ae86-3ad89d1ebdb3
2025-01-14 22:18:05,152 - INFO - ================================================================================
2025-01-14 22:18:05,152 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 22:18:05,152 - 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-14 22:18:05,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.26': '0'}} with
2025-01-14 22:18:05,414 - INFO - Initial checks done. Running the testcase now
2025-01-14 22:18:05,414 - INFO -
2025-01-14 22:18:05,966 - DEBUG - Response for create_network : {'network': {'id': 'a7ac3a37-3a78-4d01-a8ff-46b9b88907f7', 'name': 'ctest-vn-68501283', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-68501283'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 22:18:06,181 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d04a15e-ced3-435a-accd-ba3bfec1f7af', 'name': '', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'network_id': 'a7ac3a37-3a78-4d01-a8ff-46b9b88907f7', 'ip_version': 4, 'cidr': '8.206.140.192/26', 'allocation_pools': [{'start': '8.206.140.194', 'end': '8.206.140.254'}], 'gateway_ip': '8.206.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.206.140.194', 'tags': [], 'project_id': '8ca9f196a856472cae863ad89d1ebdb3'}}
2025-01-14 22:18:06,198 - INFO - Created VN ctest-vn-68501283
2025-01-14 22:18:06,252 - DEBUG - VN ctest-vn-68501283 UUID is a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:06,574 - DEBUG - Response for create_network : {'network': {'id': '364e353f-e699-47d6-b19d-7cb4861b3607', 'name': 'ctest-vn-03701389', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-03701389'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 22:18:06,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '941d31f3-dd3f-4926-bfae-526eecc1c086', 'name': '', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'network_id': '364e353f-e699-47d6-b19d-7cb4861b3607', 'ip_version': 4, 'cidr': '81.231.53.0/26', 'allocation_pools': [{'start': '81.231.53.2', 'end': '81.231.53.62'}], 'gateway_ip': '81.231.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.231.53.2', 'tags': [], 'project_id': '8ca9f196a856472cae863ad89d1ebdb3'}}
2025-01-14 22:18:06,747 - INFO - Created VN ctest-vn-03701389
2025-01-14 22:18:06,800 - DEBUG - VN ctest-vn-03701389 UUID is 364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:06,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283, 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-73707070:ctest-vn-03701389, 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-14 22:18:07,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7ac3a37-3a78-4d01-a8ff-46b9b88907f7', 'name': 'ctest-vn-68501283', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d04a15e-ced3-435a-accd-ba3bfec1f7af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-68501283'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969']], 'subnet_ipam': [{'subnet_cidr': '8.206.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 22:18:07,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '364e353f-e699-47d6-b19d-7cb4861b3607', 'name': 'ctest-vn-03701389', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['941d31f3-dd3f-4926-bfae-526eecc1c086'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-03701389'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969']], 'subnet_ipam': [{'subnet_cidr': '81.231.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 22:18:07,608 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 22:18:07,908 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 22:18:07,936 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976
2025-01-14 22:18:07,948 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3
2025-01-14 22:18:08,026 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:08,036 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:08,046 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd
2025-01-14 22:18:08,052 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd
2025-01-14 22:18:08,058 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ee61f696-4781-40d6-81da-1ff232b8d78d
2025-01-14 22:18:08,064 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 22:18:08,064 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:08,073 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd
2025-01-14 22:18:08,086 - INFO - Verified VN network id 9 for VN a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:08,086 - INFO - Verifications in API Server for VN ctest-vn-68501283 passed
2025-01-14 22:18:08,086 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:08,096 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd
2025-01-14 22:18:08,102 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd
2025-01-14 22:18:08,108 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ee61f696-4781-40d6-81da-1ff232b8d78d
2025-01-14 22:18:08,119 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73707070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12082095909206772993', 'uuid-lslong': '12177529680911992823'}, 'enable': 'true', 'created': '2025-01-14T22:18:05', 'last-modified': '2025-01-14T22:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911438'}
2025-01-14 22:18:08,125 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 22:18:08,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68501283 passed
2025-01-14 22:18:08,126 - DEBUG - ====Verifying policy data for ctest-vn-68501283 in API_Server ======
2025-01-14 22:18:08,126 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 22:18:08,131 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976
2025-01-14 22:18:08,141 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3
2025-01-14 22:18:08,208 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7
2025-01-14 22:18:08,219 - DEBUG - ==>Verifying data for policy with id: da9bb4e7-b3ab-4f28-9949-8b8beaa4319b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969']
2025-01-14 22:18:08,219 - INFO - VN ctest-vn-68501283 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 22:18:08,219 - DEBUG - Verifying the vn in opserver
2025-01-14 22:18:08,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283 virtual network link through opserver 10.0.0.22
2025-01-14 22:18:08,220 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-14 22:18:08,510 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-14 22:18:08,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283?flat'}
2025-01-14 22:18:08,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283 is found in opserver
2025-01-14 22:18:08,569 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 22:18:08,574 - DEBUG - VRF ids for VN ctest-vn-68501283: {}
2025-01-14 22:18:08,574 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 22:18:08,579 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976
2025-01-14 22:18:08,590 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3
2025-01-14 22:18:08,659 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:08,670 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:08,679 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3
2025-01-14 22:18:08,685 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3
2025-01-14 22:18:08,691 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d8432527-4451-434f-be69-16cd046445e8
2025-01-14 22:18:08,697 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 22:18:08,697 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:08,705 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3
2025-01-14 22:18:08,718 - INFO - Verified VN network id 10 for VN 364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:08,718 - INFO - Verifications in API Server for VN ctest-vn-03701389 passed
2025-01-14 22:18:08,718 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:08,727 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3
2025-01-14 22:18:08,733 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3
2025-01-14 22:18:08,741 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d8432527-4451-434f-be69-16cd046445e8
2025-01-14 22:18:08,751 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73707070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3913123674799556566', 'uuid-lslong': '12798522830842705415'}, 'enable': 'true', 'created': '2025-01-14T22:18:06', 'last-modified': '2025-01-14T22:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314063'}
2025-01-14 22:18:08,757 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 22:18:08,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03701389 passed
2025-01-14 22:18:08,757 - DEBUG - ====Verifying policy data for ctest-vn-03701389 in API_Server ======
2025-01-14 22:18:08,757 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 22:18:08,762 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976
2025-01-14 22:18:08,773 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3
2025-01-14 22:18:08,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607
2025-01-14 22:18:08,863 - DEBUG - ==>Verifying data for policy with id: da9bb4e7-b3ab-4f28-9949-8b8beaa4319b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969']
2025-01-14 22:18:08,863 - INFO - VN ctest-vn-03701389 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 22:18:08,863 - DEBUG - Verifying the vn in opserver
2025-01-14 22:18:08,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389 virtual network link through opserver 10.0.0.22
2025-01-14 22:18:08,863 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-14 22:18:08,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389?flat'}
2025-01-14 22:18:08,874 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389 is found in opserver
2025-01-14 22:18:08,885 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 22:18:08,889 - DEBUG - VRF ids for VN ctest-vn-03701389: {}
2025-01-14 22:18:08,944 - DEBUG - Services list from nova: [