2024-09-04 11:15:26,239 - INFO - Reading existing Domain with UUID 5fc23b5e-6535-4002-b7dc-a80fda751e6b
2024-09-04 11:15:26,270 - INFO - Using existing domain ['admin_domain'](5fc23b5e-6535-4002-b7dc-a80fda751e6b)
2024-09-04 11:15:26,713 - INFO - Project ctest-TestBasicPolicy-34175055 not found, creating it
2024-09-04 11:15:27,581 - INFO - Created Project:ctest-TestBasicPolicy-34175055, ID : c78265a5-23a5-4edd-b9ac-6abfa1db4727
2024-09-04 11:15:29,913 - INFO - ================================================================================
2024-09-04 11:15:29,913 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 11:15:29,913 - 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-09-04 11:15:30,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with
2024-09-04 11:15:30,389 - INFO - Initial checks done. Running the testcase now
2024-09-04 11:15:30,389 - INFO -
2024-09-04 11:15:31,461 - DEBUG - Response for create_network : {'network': {'id': 'efabff22-3e11-44e0-920f-697de94c43dc', 'name': 'ctest-vn-51566451', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-51566451'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-04 11:15:31,703 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c73b5600-77e5-4b97-a56a-9a3479198f0a', 'name': '', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'network_id': 'efabff22-3e11-44e0-920f-697de94c43dc', 'ip_version': 4, 'cidr': '93.63.60.0/26', 'allocation_pools': [{'start': '93.63.60.2', 'end': '93.63.60.62'}], 'gateway_ip': '93.63.60.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-04T11:15:31.580627', 'updated_at': '2024-09-04T11:15:31.580627', 'dns_server_address': '93.63.60.2', 'tags': [], 'project_id': 'c78265a523a54eddb9ac6abfa1db4727'}}
2024-09-04 11:15:31,799 - INFO - Created VN ctest-vn-51566451
2024-09-04 11:15:31,860 - DEBUG - VN ctest-vn-51566451 UUID is efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:32,449 - DEBUG - Response for create_network : {'network': {'id': '1c0188c8-74d4-4314-b39f-d9cea3ac4837', 'name': 'ctest-vn-06889436', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-06889436'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-04 11:15:32,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8107b6e-7ccf-453f-9845-989076815a7b', 'name': '', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'network_id': '1c0188c8-74d4-4314-b39f-d9cea3ac4837', 'ip_version': 4, 'cidr': '15.236.68.192/26', 'allocation_pools': [{'start': '15.236.68.194', 'end': '15.236.68.254'}], 'gateway_ip': '15.236.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-04T11:15:32.680227', 'updated_at': '2024-09-04T11:15:32.680227', 'dns_server_address': '15.236.68.194', 'tags': [], 'project_id': 'c78265a523a54eddb9ac6abfa1db4727'}}
2024-09-04 11:15:32,891 - INFO - Created VN ctest-vn-06889436
2024-09-04 11:15:32,948 - DEBUG - VN ctest-vn-06889436 UUID is 1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:33,196 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436, 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-09-04 11:15:33,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efabff22-3e11-44e0-920f-697de94c43dc', 'name': 'ctest-vn-51566451', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c73b5600-77e5-4b97-a56a-9a3479198f0a'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-51566451'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768']], 'subnet_ipam': [{'subnet_cidr': '93.63.60.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-04T11:15:31.370174', 'updated_at': '2024-09-04T11:15:31.596818'}}
2024-09-04 11:15:34,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c0188c8-74d4-4314-b39f-d9cea3ac4837', 'name': 'ctest-vn-06889436', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8107b6e-7ccf-453f-9845-989076815a7b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-06889436'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768']], 'subnet_ipam': [{'subnet_cidr': '15.236.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-04T11:15:32.365922', 'updated_at': '2024-09-04T11:15:32.716014'}}
2024-09-04 11:15:34,384 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-09-04 11:15:34,739 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-09-04 11:15:34,862 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b
2024-09-04 11:15:34,937 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727
2024-09-04 11:15:35,042 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:35,111 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:35,186 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf
2024-09-04 11:15:35,254 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf
2024-09-04 11:15:35,314 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/401735ac-2355-4789-bdfd-f42a285918ba
2024-09-04 11:15:35,375 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 11:15:35,375 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:35,442 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf
2024-09-04 11:15:35,524 - INFO - Verified VN network id 7 for VN efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:35,524 - INFO - Verifications in API Server for VN ctest-vn-51566451 passed
2024-09-04 11:15:35,524 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:35,610 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf
2024-09-04 11:15:35,686 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf
2024-09-04 11:15:35,760 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/401735ac-2355-4789-bdfd-f42a285918ba
2024-09-04 11:15:35,910 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34175055', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17270177718617588960', 'uuid-lslong': '10524746843694056412'}, 'enable': 'true', 'created': '2024-09-04T11:15:31', 'last-modified': '2024-09-04T11:15:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.231700'}
2024-09-04 11:15:35,970 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 11:15:35,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51566451 passed
2024-09-04 11:15:35,970 - DEBUG - ====Verifying policy data for ctest-vn-51566451 in API_Server ======
2024-09-04 11:15:35,971 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-09-04 11:15:36,029 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b
2024-09-04 11:15:36,110 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727
2024-09-04 11:15:36,243 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc
2024-09-04 11:15:36,308 - DEBUG - ==>Verifying data for policy with id: b0b00b81-885c-45c9-9d33-0b87e5846723, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768']
2024-09-04 11:15:36,308 - INFO - VN ctest-vn-51566451 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 11:15:36,308 - DEBUG - Verifying the vn in opserver
2024-09-04 11:15:36,308 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451 virtual network link through opserver 10.0.0.17
2024-09-04 11:15:36,308 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-04 11:15:36,712 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-04 11:15:37,029 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451?flat'}
2024-09-04 11:15:37,029 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451 is found in opserver
2024-09-04 11:15:37,151 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 11:15:37,219 - DEBUG - VRF ids for VN ctest-vn-51566451: {}
2024-09-04 11:15:37,220 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-09-04 11:15:37,298 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b
2024-09-04 11:15:37,390 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727
2024-09-04 11:15:37,490 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:37,561 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:37,638 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb
2024-09-04 11:15:37,721 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb
2024-09-04 11:15:37,796 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/e171742e-f975-46f2-a10f-5a9856a30f36
2024-09-04 11:15:37,869 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 11:15:37,869 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:37,952 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb
2024-09-04 11:15:38,047 - INFO - Verified VN network id 8 for VN 1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:38,048 - INFO - Verifications in API Server for VN ctest-vn-06889436 passed
2024-09-04 11:15:38,048 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:38,130 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb
2024-09-04 11:15:38,202 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb
2024-09-04 11:15:38,269 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/e171742e-f975-46f2-a10f-5a9856a30f36
2024-09-04 11:15:38,407 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34175055', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2018044502573597460', 'uuid-lslong': '12943303335618562103'}, 'enable': 'true', 'created': '2024-09-04T11:15:32', 'last-modified': '2024-09-04T11:15:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.301325'}
2024-09-04 11:15:38,476 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 11:15:38,476 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06889436 passed
2024-09-04 11:15:38,477 - DEBUG - ====Verifying policy data for ctest-vn-06889436 in API_Server ======
2024-09-04 11:15:38,478 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-09-04 11:15:38,548 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b
2024-09-04 11:15:38,628 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727
2024-09-04 11:15:38,759 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837
2024-09-04 11:15:38,841 - DEBUG - ==>Verifying data for policy with id: b0b00b81-885c-45c9-9d33-0b87e5846723, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768']
2024-09-04 11:15:38,841 - INFO - VN ctest-vn-06889436 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 11:15:38,841 - DEBUG - Verifying the vn in opserver
2024-09-04 11:15:38,841 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436 virtual network link through opserver 10.0.0.17
2024-09-04 11:15:38,841 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-04 11:15:38,913 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436?flat'}
2024-09-04 11:15:38,913 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436 is found in opserver
2024-09-04 11:15:39,029 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 11:15:39,094 - DEBUG - VRF ids for VN ctest-vn-06889436: {}
2024-09-04 11:15:39,196 - DEBUG - Services list from nova: [