2024-11-10 18:04:48,487 - INFO - Domain Default found not creating
2024-11-10 18:04:48,795 - INFO - Project ctest-TestBasicPolicy-87617750 not found, creating it
2024-11-10 18:04:49,523 - INFO - Created Project:ctest-TestBasicPolicy-87617750, ID : 01c1ddeb-97cc-4c46-aad2-63a368b4de6b
2024-11-10 18:04:51,638 - INFO - ================================================================================
2024-11-10 18:04:51,639 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 18:04:51,642 - 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-11-10 18:04:51,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.25': '0'}} with
2024-11-10 18:04:51,936 - INFO - Initial checks done. Running the testcase now
2024-11-10 18:04:51,936 - INFO -
2024-11-10 18:04:52,617 - DEBUG - Response for create_network : {'network': {'id': '2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb', 'name': 'ctest-vn-97191884', 'tenant_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'project_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-vn-97191884'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:04:52,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '9aa7665c-bf80-412e-b978-decc92a268cc', 'name': '', 'tenant_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'network_id': '2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb', 'ip_version': 4, 'cidr': '2.240.219.0/26', 'allocation_pools': [{'start': '2.240.219.2', 'end': '2.240.219.62'}], 'gateway_ip': '2.240.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.240.219.2', 'tags': [], 'project_id': '01c1ddeb97cc4c46aad263a368b4de6b'}}
2024-11-10 18:04:52,866 - INFO - Created VN ctest-vn-97191884
2024-11-10 18:04:52,924 - DEBUG - VN ctest-vn-97191884 UUID is 2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:53,335 - DEBUG - Response for create_network : {'network': {'id': 'd689c9ea-11e0-44cc-8742-58aa3db42e63', 'name': 'ctest-vn-92982245', 'tenant_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'project_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-vn-92982245'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:04:53,539 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ca7e595-f706-475d-b042-b955f639c10d', 'name': '', 'tenant_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'network_id': 'd689c9ea-11e0-44cc-8742-58aa3db42e63', 'ip_version': 4, 'cidr': '86.147.83.128/26', 'allocation_pools': [{'start': '86.147.83.130', 'end': '86.147.83.190'}], 'gateway_ip': '86.147.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.147.83.130', 'tags': [], 'project_id': '01c1ddeb97cc4c46aad263a368b4de6b'}}
2024-11-10 18:04:53,559 - INFO - Created VN ctest-vn-92982245
2024-11-10 18:04:53,620 - DEBUG - VN ctest-vn-92982245 UUID is d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:53,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-97191884, 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-87617750:ctest-vn-92982245, 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-11-10 18:04:54,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb', 'name': 'ctest-vn-97191884', 'tenant_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'project_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9aa7665c-bf80-412e-b978-decc92a268cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-vn-97191884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-policy-allow-all-05022936']], 'subnet_ipam': [{'subnet_cidr': '2.240.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:04:54,512 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd689c9ea-11e0-44cc-8742-58aa3db42e63', 'name': 'ctest-vn-92982245', 'tenant_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'project_id': '01c1ddeb97cc4c46aad263a368b4de6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ca7e595-f706-475d-b042-b955f639c10d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-vn-92982245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-policy-allow-all-05022936']], 'subnet_ipam': [{'subnet_cidr': '86.147.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:04:54,660 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-10 18:04:54,991 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-10 18:04:55,031 - DEBUG - Requesting: http://10.0.0.31:8082/domain/18a5d2f2-a9a8-4542-8e88-db19369253c6
2024-11-10 18:04:55,062 - DEBUG - Requesting: http://10.0.0.31:8082/project/01c1ddeb-97cc-4c46-aad2-63a368b4de6b
2024-11-10 18:04:55,179 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:55,201 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:55,230 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02e36787-3d71-4f64-898d-58f40a74c95b
2024-11-10 18:04:55,246 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02e36787-3d71-4f64-898d-58f40a74c95b
2024-11-10 18:04:55,261 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/61bb6bf6-c4b1-44bd-9fd5-0a6942a8e48e
2024-11-10 18:04:55,277 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 18:04:55,277 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:55,307 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02e36787-3d71-4f64-898d-58f40a74c95b
2024-11-10 18:04:55,338 - INFO - Verified VN network id 8 for VN 2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:55,338 - INFO - Verifications in API Server for VN ctest-vn-97191884 passed
2024-11-10 18:04:55,338 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:55,363 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02e36787-3d71-4f64-898d-58f40a74c95b
2024-11-10 18:04:55,375 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02e36787-3d71-4f64-898d-58f40a74c95b
2024-11-10 18:04:55,387 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/61bb6bf6-c4b1-44bd-9fd5-0a6942a8e48e
2024-11-10 18:04:55,411 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-97191884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87617750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3125169132812454611', 'uuid-lslong': '10663179286856979691'}, 'enable': 'true', 'created': '2024-11-10T18:04:52', 'last-modified': '2024-11-10T18:04:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.238755'}
2024-11-10 18:04:55,424 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 18:04:55,424 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97191884 passed
2024-11-10 18:04:55,424 - DEBUG - ====Verifying policy data for ctest-vn-97191884 in API_Server ======
2024-11-10 18:04:55,424 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-10 18:04:55,434 - DEBUG - Requesting: http://10.0.0.31:8082/domain/18a5d2f2-a9a8-4542-8e88-db19369253c6
2024-11-10 18:04:55,468 - DEBUG - Requesting: http://10.0.0.31:8082/project/01c1ddeb-97cc-4c46-aad2-63a368b4de6b
2024-11-10 18:04:55,571 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2b5ed4c4-b84d-4ad3-93fb-3910c169d4eb
2024-11-10 18:04:55,597 - DEBUG - ==>Verifying data for policy with id: 6ae32084-37a0-4b2c-a207-c8c91e0ef986, fqn: ['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-policy-allow-all-05022936']
2024-11-10 18:04:55,598 - INFO - VN ctest-vn-97191884 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 18:04:55,598 - DEBUG - Verifying the vn in opserver
2024-11-10 18:04:55,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-97191884 virtual network link through opserver 10.0.0.31
2024-11-10 18:04:55,599 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-10 18:04:55,943 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-10 18:04:56,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-97191884', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-97191884?flat'}
2024-11-10 18:04:56,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-97191884 is found in opserver
2024-11-10 18:04:56,123 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 18:04:56,140 - DEBUG - VRF ids for VN ctest-vn-97191884: {}
2024-11-10 18:04:56,140 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-10 18:04:56,155 - DEBUG - Requesting: http://10.0.0.31:8082/domain/18a5d2f2-a9a8-4542-8e88-db19369253c6
2024-11-10 18:04:56,189 - DEBUG - Requesting: http://10.0.0.31:8082/project/01c1ddeb-97cc-4c46-aad2-63a368b4de6b
2024-11-10 18:04:56,296 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:56,324 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:56,342 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ab6a06eb-df3e-442c-8c44-0f4f4da4d35a
2024-11-10 18:04:56,352 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ab6a06eb-df3e-442c-8c44-0f4f4da4d35a
2024-11-10 18:04:56,371 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/8af51d2f-ff37-48ae-b570-4e716e8f681e
2024-11-10 18:04:56,381 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 18:04:56,381 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:56,398 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ab6a06eb-df3e-442c-8c44-0f4f4da4d35a
2024-11-10 18:04:56,423 - INFO - Verified VN network id 9 for VN d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:56,423 - INFO - Verifications in API Server for VN ctest-vn-92982245 passed
2024-11-10 18:04:56,423 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:56,440 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ab6a06eb-df3e-442c-8c44-0f4f4da4d35a
2024-11-10 18:04:56,450 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ab6a06eb-df3e-442c-8c44-0f4f4da4d35a
2024-11-10 18:04:56,460 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/8af51d2f-ff37-48ae-b570-4e716e8f681e
2024-11-10 18:04:56,478 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-92982245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87617750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15459109203085378764', 'uuid-lslong': '9746450031786077795'}, 'enable': 'true', 'created': '2024-11-10T18:04:53', 'last-modified': '2024-11-10T18:04:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.016847'}
2024-11-10 18:04:56,488 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 18:04:56,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92982245 passed
2024-11-10 18:04:56,489 - DEBUG - ====Verifying policy data for ctest-vn-92982245 in API_Server ======
2024-11-10 18:04:56,489 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-10 18:04:56,498 - DEBUG - Requesting: http://10.0.0.31:8082/domain/18a5d2f2-a9a8-4542-8e88-db19369253c6
2024-11-10 18:04:56,527 - DEBUG - Requesting: http://10.0.0.31:8082/project/01c1ddeb-97cc-4c46-aad2-63a368b4de6b
2024-11-10 18:04:56,619 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d689c9ea-11e0-44cc-8742-58aa3db42e63
2024-11-10 18:04:56,634 - DEBUG - ==>Verifying data for policy with id: 6ae32084-37a0-4b2c-a207-c8c91e0ef986, fqn: ['default-domain', 'ctest-TestBasicPolicy-87617750', 'ctest-policy-allow-all-05022936']
2024-11-10 18:04:56,634 - INFO - VN ctest-vn-92982245 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 18:04:56,634 - DEBUG - Verifying the vn in opserver
2024-11-10 18:04:56,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-92982245 virtual network link through opserver 10.0.0.31
2024-11-10 18:04:56,634 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-10 18:04:56,649 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-92982245', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-92982245?flat'}
2024-11-10 18:04:56,649 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87617750:ctest-vn-92982245 is found in opserver
2024-11-10 18:04:56,663 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 18:04:56,671 - DEBUG - VRF ids for VN ctest-vn-92982245: {}
2024-11-10 18:04:56,742 - DEBUG - Services list from nova: [