2024-10-31 02:11:36,747 - INFO - Reading existing Domain with UUID 0fc11768-1bc4-4a76-8ff2-b677acb0a6ff
2024-10-31 02:11:36,762 - INFO - Using existing domain ['admin_domain'](0fc11768-1bc4-4a76-8ff2-b677acb0a6ff)
2024-10-31 02:11:37,101 - INFO - Project ctest-TestBasicPolicy-34266765 not found, creating it
2024-10-31 02:11:37,792 - INFO - Created Project:ctest-TestBasicPolicy-34266765, ID : 04d6aa30-76a7-4651-9b21-f2bd3ba1aac3
2024-10-31 02:11:40,006 - INFO - ================================================================================
2024-10-31 02:11:40,008 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-31 02:11:40,008 - 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-31 02:11:40,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with
2024-10-31 02:11:40,427 - INFO - Initial checks done. Running the testcase now
2024-10-31 02:11:40,427 - INFO -
2024-10-31 02:11:41,638 - DEBUG - Response for create_network : {'network': {'id': 'e37cf253-e9eb-4a1a-9fc6-75c2b99136fb', 'name': 'ctest-vn-51280434', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-51280434'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-10-31 02:11:41,926 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dc57d25-99e8-42a2-a4c4-009c7f33f0e5', 'name': '', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'network_id': 'e37cf253-e9eb-4a1a-9fc6-75c2b99136fb', 'ip_version': 4, 'cidr': '35.185.155.0/26', 'allocation_pools': [{'start': '35.185.155.2', 'end': '35.185.155.62'}], 'gateway_ip': '35.185.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-31T02:11:41.804581', 'updated_at': '2024-10-31T02:11:41.804581', 'dns_server_address': '35.185.155.2', 'tags': [], 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3'}}
2024-10-31 02:11:41,996 - INFO - Created VN ctest-vn-51280434
2024-10-31 02:11:42,065 - DEBUG - VN ctest-vn-51280434 UUID is e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:42,714 - DEBUG - Response for create_network : {'network': {'id': '212e8db4-bccb-4028-a448-aa59a67a35c0', 'name': 'ctest-vn-06964615', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-06964615'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-10-31 02:11:43,046 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd34911-65b4-4f83-9f0f-298e2e82c34b', 'name': '', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'network_id': '212e8db4-bccb-4028-a448-aa59a67a35c0', 'ip_version': 4, 'cidr': '77.200.174.128/26', 'allocation_pools': [{'start': '77.200.174.130', 'end': '77.200.174.190'}], 'gateway_ip': '77.200.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-31T02:11:42.893977', 'updated_at': '2024-10-31T02:11:42.893977', 'dns_server_address': '77.200.174.130', 'tags': [], 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3'}}
2024-10-31 02:11:43,120 - INFO - Created VN ctest-vn-06964615
2024-10-31 02:11:43,181 - DEBUG - VN ctest-vn-06964615 UUID is 212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:43,436 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434, 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-34266765:ctest-vn-06964615, 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-31 02:11:43,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e37cf253-e9eb-4a1a-9fc6-75c2b99136fb', 'name': 'ctest-vn-51280434', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dc57d25-99e8-42a2-a4c4-009c7f33f0e5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-51280434'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204']], 'subnet_ipam': [{'subnet_cidr': '35.185.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-31T02:11:41.536990', 'updated_at': '2024-10-31T02:11:41.823393'}}
2024-10-31 02:11:44,445 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '212e8db4-bccb-4028-a448-aa59a67a35c0', 'name': 'ctest-vn-06964615', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd34911-65b4-4f83-9f0f-298e2e82c34b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-06964615'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204']], 'subnet_ipam': [{'subnet_cidr': '77.200.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-31T02:11:42.617678', 'updated_at': '2024-10-31T02:11:42.920547'}}
2024-10-31 02:11:44,689 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-10-31 02:11:45,136 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-10-31 02:11:45,233 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff
2024-10-31 02:11:45,294 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3
2024-10-31 02:11:45,391 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:45,455 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:45,515 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96
2024-10-31 02:11:45,570 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96
2024-10-31 02:11:45,626 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/fa18f778-4a13-4a41-9269-6a38280d7cff
2024-10-31 02:11:45,690 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:11:45,690 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:45,761 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96
2024-10-31 02:11:45,840 - INFO - Verified VN network id 8 for VN e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:45,840 - INFO - Verifications in API Server for VN ctest-vn-51280434 passed
2024-10-31 02:11:45,840 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:45,908 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96
2024-10-31 02:11:45,966 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96
2024-10-31 02:11:46,022 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/fa18f778-4a13-4a41-9269-6a38280d7cff
2024-10-31 02:11:46,138 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34266765', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16392243185942481434', 'uuid-lslong': '11513018976616658683'}, 'enable': 'true', 'created': '2024-10-31T02:11:41', 'last-modified': '2024-10-31T02:11:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.241314'}
2024-10-31 02:11:46,191 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:11:46,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51280434 passed
2024-10-31 02:11:46,192 - DEBUG - ====Verifying policy data for ctest-vn-51280434 in API_Server ======
2024-10-31 02:11:46,192 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-10-31 02:11:46,246 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff
2024-10-31 02:11:46,307 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3
2024-10-31 02:11:46,400 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb
2024-10-31 02:11:46,468 - DEBUG - ==>Verifying data for policy with id: a9c7fe53-cab4-4583-96ba-8f5be3fa0ebe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204']
2024-10-31 02:11:46,468 - INFO - VN ctest-vn-51280434 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:11:46,468 - DEBUG - Verifying the vn in opserver
2024-10-31 02:11:46,468 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434 virtual network link through opserver 10.0.0.17
2024-10-31 02:11:46,468 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2024-10-31 02:11:46,869 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2024-10-31 02:11:46,990 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434?flat'}
2024-10-31 02:11:46,990 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434 is found in opserver
2024-10-31 02:11:47,094 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:11:47,149 - DEBUG - VRF ids for VN ctest-vn-51280434: {}
2024-10-31 02:11:47,150 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-10-31 02:11:47,205 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff
2024-10-31 02:11:47,271 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3
2024-10-31 02:11:47,363 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:47,432 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:47,501 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e
2024-10-31 02:11:47,559 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e
2024-10-31 02:11:47,618 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/f76b28e9-9607-4429-896c-62a0e2e20d85
2024-10-31 02:11:47,675 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:11:47,675 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:47,743 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e
2024-10-31 02:11:47,821 - INFO - Verified VN network id 9 for VN 212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:47,821 - INFO - Verifications in API Server for VN ctest-vn-06964615 passed
2024-10-31 02:11:47,821 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:47,887 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e
2024-10-31 02:11:47,946 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e
2024-10-31 02:11:48,002 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/f76b28e9-9607-4429-896c-62a0e2e20d85
2024-10-31 02:11:48,114 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34266765', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2391004259581378600', 'uuid-lslong': '11837898922565187008'}, 'enable': 'true', 'created': '2024-10-31T02:11:42', 'last-modified': '2024-10-31T02:11:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.763717'}
2024-10-31 02:11:48,167 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:11:48,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06964615 passed
2024-10-31 02:11:48,167 - DEBUG - ====Verifying policy data for ctest-vn-06964615 in API_Server ======
2024-10-31 02:11:48,167 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2024-10-31 02:11:48,221 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff
2024-10-31 02:11:48,282 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3
2024-10-31 02:11:48,383 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0
2024-10-31 02:11:48,448 - DEBUG - ==>Verifying data for policy with id: a9c7fe53-cab4-4583-96ba-8f5be3fa0ebe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204']
2024-10-31 02:11:48,448 - INFO - VN ctest-vn-06964615 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:11:48,448 - DEBUG - Verifying the vn in opserver
2024-10-31 02:11:48,448 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615 virtual network link through opserver 10.0.0.17
2024-10-31 02:11:48,448 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2024-10-31 02:11:48,510 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615?flat'}
2024-10-31 02:11:48,510 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615 is found in opserver
2024-10-31 02:11:48,613 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:11:48,666 - DEBUG - VRF ids for VN ctest-vn-06964615: {}
2024-10-31 02:11:48,744 - DEBUG - Services list from nova: [