2024-11-03 22:13:19,156 - INFO - Domain Default found not creating
2024-11-03 22:13:19,360 - INFO - Project ctest-TestBasicPolicy-22963648 not found, creating it
2024-11-03 22:13:19,905 - INFO - Created Project:ctest-TestBasicPolicy-22963648, ID : 705298d0-6c86-4aa4-9e75-90e35c8478b2
2024-11-03 22:13:21,712 - INFO - ================================================================================
2024-11-03 22:13:21,713 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-03 22:13:21,714 - 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-03 22:13:21,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.10': '0'}} with
2024-11-03 22:13:21,977 - INFO - Initial checks done. Running the testcase now
2024-11-03 22:13:21,978 - INFO -
2024-11-03 22:13:22,655 - DEBUG - Response for create_network : {'network': {'id': '2079d853-55e6-4291-ad92-78156dc0007e', 'name': 'ctest-vn-79875645', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-79875645'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:13:22,898 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8dcf2e2-a50e-4196-9377-f8e0b3c283a4', 'name': '', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'network_id': '2079d853-55e6-4291-ad92-78156dc0007e', 'ip_version': 4, 'cidr': '165.107.122.0/26', 'allocation_pools': [{'start': '165.107.122.2', 'end': '165.107.122.62'}], 'gateway_ip': '165.107.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.107.122.2', 'tags': [], 'project_id': '705298d06c864aa49e7590e35c8478b2'}}
2024-11-03 22:13:22,921 - INFO - Created VN ctest-vn-79875645
2024-11-03 22:13:22,980 - DEBUG - VN ctest-vn-79875645 UUID is 2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:23,407 - DEBUG - Response for create_network : {'network': {'id': '1e777786-498d-4be7-ab81-3cf4d2af82f4', 'name': 'ctest-vn-96013211', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-96013211'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:13:23,611 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af205ca0-ce7e-4cb3-b51e-c174dfb78b5a', 'name': '', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'network_id': '1e777786-498d-4be7-ab81-3cf4d2af82f4', 'ip_version': 4, 'cidr': '196.54.2.64/26', 'allocation_pools': [{'start': '196.54.2.66', 'end': '196.54.2.126'}], 'gateway_ip': '196.54.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.54.2.66', 'tags': [], 'project_id': '705298d06c864aa49e7590e35c8478b2'}}
2024-11-03 22:13:23,634 - INFO - Created VN ctest-vn-96013211
2024-11-03 22:13:23,696 - DEBUG - VN ctest-vn-96013211 UUID is 1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:23,837 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645, 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-22963648:ctest-vn-96013211, 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-03 22:13:24,209 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2079d853-55e6-4291-ad92-78156dc0007e', 'name': 'ctest-vn-79875645', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8dcf2e2-a50e-4196-9377-f8e0b3c283a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-79875645'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685']], 'subnet_ipam': [{'subnet_cidr': '165.107.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:13:24,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e777786-498d-4be7-ab81-3cf4d2af82f4', 'name': 'ctest-vn-96013211', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af205ca0-ce7e-4cb3-b51e-c174dfb78b5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-96013211'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685']], 'subnet_ipam': [{'subnet_cidr': '196.54.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:13:24,684 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-03 22:13:25,035 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-03 22:13:25,072 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1
2024-11-03 22:13:25,096 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2
2024-11-03 22:13:25,196 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:25,218 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:25,236 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe
2024-11-03 22:13:25,249 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe
2024-11-03 22:13:25,263 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/30f67ca9-25e4-45d3-8d6a-e675ab508752
2024-11-03 22:13:25,275 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 22:13:25,275 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:25,293 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe
2024-11-03 22:13:25,319 - INFO - Verified VN network id 7 for VN 2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:25,319 - INFO - Verifications in API Server for VN ctest-vn-79875645 passed
2024-11-03 22:13:25,319 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:25,338 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe
2024-11-03 22:13:25,352 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe
2024-11-03 22:13:25,365 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/30f67ca9-25e4-45d3-8d6a-e675ab508752
2024-11-03 22:13:25,386 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22963648', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2340139333830722193', 'uuid-lslong': '12507191148592234622'}, 'enable': 'true', 'created': '2024-11-03T22:13:22', 'last-modified': '2024-11-03T22:13:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.213416'}
2024-11-03 22:13:25,400 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 22:13:25,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79875645 passed
2024-11-03 22:13:25,400 - DEBUG - ====Verifying policy data for ctest-vn-79875645 in API_Server ======
2024-11-03 22:13:25,400 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-03 22:13:25,408 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1
2024-11-03 22:13:25,423 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2
2024-11-03 22:13:25,519 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e
2024-11-03 22:13:25,537 - DEBUG - ==>Verifying data for policy with id: a7b04025-5fb5-4641-9900-737957fa1f64, fqn: ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685']
2024-11-03 22:13:25,537 - INFO - VN ctest-vn-79875645 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 22:13:25,537 - DEBUG - Verifying the vn in opserver
2024-11-03 22:13:25,538 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645 virtual network link through opserver 10.0.0.44
2024-11-03 22:13:25,538 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-03 22:13:25,892 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-03 22:13:25,978 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645?flat'}
2024-11-03 22:13:25,978 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645 is found in opserver
2024-11-03 22:13:25,994 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 22:13:26,003 - DEBUG - VRF ids for VN ctest-vn-79875645: {}
2024-11-03 22:13:26,003 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-03 22:13:26,011 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1
2024-11-03 22:13:26,028 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2
2024-11-03 22:13:26,121 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:26,143 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:26,164 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005
2024-11-03 22:13:26,176 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005
2024-11-03 22:13:26,187 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/49642401-e8ec-4b58-ab18-cbd6a9e8c2dc
2024-11-03 22:13:26,199 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 22:13:26,199 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:26,217 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005
2024-11-03 22:13:26,245 - INFO - Verified VN network id 8 for VN 1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:26,245 - INFO - Verifications in API Server for VN ctest-vn-96013211 passed
2024-11-03 22:13:26,245 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:26,263 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005
2024-11-03 22:13:26,275 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005
2024-11-03 22:13:26,287 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/49642401-e8ec-4b58-ab18-cbd6a9e8c2dc
2024-11-03 22:13:26,306 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22963648', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2195354762009725927', 'uuid-lslong': '12358225874685756148'}, 'enable': 'true', 'created': '2024-11-03T22:13:23', 'last-modified': '2024-11-03T22:13:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.850663'}
2024-11-03 22:13:26,315 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 22:13:26,315 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96013211 passed
2024-11-03 22:13:26,315 - DEBUG - ====Verifying policy data for ctest-vn-96013211 in API_Server ======
2024-11-03 22:13:26,315 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-03 22:13:26,324 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1
2024-11-03 22:13:26,342 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2
2024-11-03 22:13:26,430 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4
2024-11-03 22:13:26,453 - DEBUG - ==>Verifying data for policy with id: a7b04025-5fb5-4641-9900-737957fa1f64, fqn: ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685']
2024-11-03 22:13:26,453 - INFO - VN ctest-vn-96013211 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 22:13:26,454 - DEBUG - Verifying the vn in opserver
2024-11-03 22:13:26,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211 virtual network link through opserver 10.0.0.44
2024-11-03 22:13:26,454 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-03 22:13:26,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211?flat'}
2024-11-03 22:13:26,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211 is found in opserver
2024-11-03 22:13:26,488 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 22:13:26,495 - DEBUG - VRF ids for VN ctest-vn-96013211: {}
2024-11-03 22:13:26,566 - DEBUG - Services list from nova: [