2024-10-24 11:42:05,550 - INFO - Domain Default found not creating
2024-10-24 11:42:05,746 - INFO - Project ctest-TestBasicPolicy-97693873 not found, creating it
2024-10-24 11:42:06,262 - INFO - Created Project:ctest-TestBasicPolicy-97693873, ID : 55f2eff6-e0ba-492c-9197-cc4e747bcb74
2024-10-24 11:42:07,936 - INFO - ================================================================================
2024-10-24 11:42:07,937 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 11:42:07,937 - 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
2024-10-24 11:42:08,208 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.6': '0'}} with
2024-10-24 11:42:08,208 - INFO - Initial checks done. Running the testcase now
2024-10-24 11:42:08,208 - INFO -
2024-10-24 11:42:08,868 - DEBUG - Response for create_network : {'network': {'id': 'e104b3b9-37b2-4733-8714-b9f625f0120a', 'name': 'ctest-vn-05222939', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-05222939'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 11:42:09,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb95d08d-aa2f-4eea-a9e8-0d51d3ba1d93', 'name': '', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'network_id': 'e104b3b9-37b2-4733-8714-b9f625f0120a', 'ip_version': 4, 'cidr': '186.22.227.64/26', 'allocation_pools': [{'start': '186.22.227.66', 'end': '186.22.227.126'}], 'gateway_ip': '186.22.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.22.227.66', 'tags': [], 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74'}}
2024-10-24 11:42:09,160 - INFO - Created VN ctest-vn-05222939
2024-10-24 11:42:09,225 - DEBUG - VN ctest-vn-05222939 UUID is e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:09,596 - DEBUG - Response for create_network : {'network': {'id': '9f8a085f-ceed-4d51-84aa-d00dc63ff7fb', 'name': 'ctest-vn-69451732', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-69451732'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 11:42:09,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '41e0b5a4-fc68-4093-a333-d52811091716', 'name': '', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'network_id': '9f8a085f-ceed-4d51-84aa-d00dc63ff7fb', 'ip_version': 4, 'cidr': '129.241.135.192/26', 'allocation_pools': [{'start': '129.241.135.194', 'end': '129.241.135.254'}], 'gateway_ip': '129.241.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.241.135.194', 'tags': [], 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74'}}
2024-10-24 11:42:09,868 - INFO - Created VN ctest-vn-69451732
2024-10-24 11:42:09,928 - DEBUG - VN ctest-vn-69451732 UUID is 9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:10,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939, 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-97693873:ctest-vn-69451732, 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]
2024-10-24 11:42:10,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e104b3b9-37b2-4733-8714-b9f625f0120a', 'name': 'ctest-vn-05222939', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb95d08d-aa2f-4eea-a9e8-0d51d3ba1d93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-05222939'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506']], 'subnet_ipam': [{'subnet_cidr': '186.22.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 11:42:10,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f8a085f-ceed-4d51-84aa-d00dc63ff7fb', 'name': 'ctest-vn-69451732', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41e0b5a4-fc68-4093-a333-d52811091716'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-69451732'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506']], 'subnet_ipam': [{'subnet_cidr': '129.241.135.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 11:42:10,876 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-24 11:42:11,194 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-24 11:42:11,235 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9
2024-10-24 11:42:11,255 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74
2024-10-24 11:42:11,344 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:11,368 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:11,384 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c
2024-10-24 11:42:11,395 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c
2024-10-24 11:42:11,405 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ba3252c3-7a35-4acb-9749-86b2af536b20
2024-10-24 11:42:11,414 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 11:42:11,414 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:11,430 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c
2024-10-24 11:42:11,454 - INFO - Verified VN network id 8 for VN e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:11,454 - INFO - Verifications in API Server for VN ctest-vn-05222939 passed
2024-10-24 11:42:11,454 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:11,475 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c
2024-10-24 11:42:11,486 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c
2024-10-24 11:42:11,497 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ba3252c3-7a35-4acb-9749-86b2af536b20
2024-10-24 11:42:11,514 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97693873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16214282166525380403', 'uuid-lslong': '9733609161504068106'}, 'enable': 'true', 'created': '2024-10-24T11:42:08', 'last-modified': '2024-10-24T11:42:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129064'}
2024-10-24 11:42:11,522 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 11:42:11,522 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05222939 passed
2024-10-24 11:42:11,522 - DEBUG - ====Verifying policy data for ctest-vn-05222939 in API_Server ======
2024-10-24 11:42:11,522 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-24 11:42:11,531 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9
2024-10-24 11:42:11,547 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74
2024-10-24 11:42:11,640 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a
2024-10-24 11:42:11,663 - DEBUG - ==>Verifying data for policy with id: 40004fda-276f-4501-b2e1-92349339d34f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506']
2024-10-24 11:42:11,663 - INFO - VN ctest-vn-05222939 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 11:42:11,663 - DEBUG - Verifying the vn in opserver
2024-10-24 11:42:11,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939 virtual network link through opserver 10.0.0.31
2024-10-24 11:42:11,664 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-24 11:42:11,970 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-24 11:42:12,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939?flat'}
2024-10-24 11:42:12,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939 is found in opserver
2024-10-24 11:42:12,061 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 11:42:12,067 - DEBUG - VRF ids for VN ctest-vn-05222939: {}
2024-10-24 11:42:12,067 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-24 11:42:12,074 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9
2024-10-24 11:42:12,091 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74
2024-10-24 11:42:12,181 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:12,206 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:12,223 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe
2024-10-24 11:42:12,235 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe
2024-10-24 11:42:12,247 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/360d9c31-5c7c-413f-8eef-1e3d01f0321e
2024-10-24 11:42:12,256 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 11:42:12,256 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:12,272 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe
2024-10-24 11:42:12,299 - INFO - Verified VN network id 9 for VN 9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:12,300 - INFO - Verifications in API Server for VN ctest-vn-69451732 passed
2024-10-24 11:42:12,300 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:12,316 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe
2024-10-24 11:42:12,329 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe
2024-10-24 11:42:12,347 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/360d9c31-5c7c-413f-8eef-1e3d01f0321e
2024-10-24 11:42:12,369 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97693873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11496010206403186001', 'uuid-lslong': '9559681916626532347'}, 'enable': 'true', 'created': '2024-10-24T11:42:09', 'last-modified': '2024-10-24T11:42:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.719779'}
2024-10-24 11:42:12,380 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 11:42:12,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69451732 passed
2024-10-24 11:42:12,380 - DEBUG - ====Verifying policy data for ctest-vn-69451732 in API_Server ======
2024-10-24 11:42:12,380 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-24 11:42:12,389 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9
2024-10-24 11:42:12,403 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74
2024-10-24 11:42:12,501 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb
2024-10-24 11:42:12,523 - DEBUG - ==>Verifying data for policy with id: 40004fda-276f-4501-b2e1-92349339d34f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506']
2024-10-24 11:42:12,524 - INFO - VN ctest-vn-69451732 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 11:42:12,524 - DEBUG - Verifying the vn in opserver
2024-10-24 11:42:12,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732 virtual network link through opserver 10.0.0.31
2024-10-24 11:42:12,524 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-24 11:42:12,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732?flat'}
2024-10-24 11:42:12,538 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732 is found in opserver
2024-10-24 11:42:12,551 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 11:42:12,557 - DEBUG - VRF ids for VN ctest-vn-69451732: {}
2024-10-24 11:42:12,619 - DEBUG - Services list from nova: [