2024-08-29 15:19:28,158 - INFO - Domain Default found not creating
2024-08-29 15:19:28,333 - INFO - Project ctest-TestBasicPolicy-68473838 not found, creating it
2024-08-29 15:19:28,813 - INFO - Created Project:ctest-TestBasicPolicy-68473838, ID : ec9b7fb1-ebed-478f-9896-29445c269b33
2024-08-29 15:19:30,356 - INFO - ================================================================================
2024-08-29 15:19:30,356 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 15:19:30,356 - 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-08-29 15:19:30,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with
2024-08-29 15:19:30,617 - INFO - Initial checks done. Running the testcase now
2024-08-29 15:19:30,617 - INFO -
2024-08-29 15:19:31,223 - DEBUG - Response for create_network : {'network': {'id': 'ffebe818-9477-4e19-889c-88193c63455b', 'name': 'ctest-vn-04615433', 'tenant_id': 'ec9b7fb1ebed478f989629445c269b33', 'project_id': 'ec9b7fb1ebed478f989629445c269b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-vn-04615433'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 15:19:31,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '377fb51a-892f-4fc9-8be1-bb625730e435', 'name': '', 'tenant_id': 'ec9b7fb1ebed478f989629445c269b33', 'network_id': 'ffebe818-9477-4e19-889c-88193c63455b', 'ip_version': 4, 'cidr': '170.204.246.192/26', 'allocation_pools': [{'start': '170.204.246.194', 'end': '170.204.246.254'}], 'gateway_ip': '170.204.246.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.204.246.194', 'tags': [], 'project_id': 'ec9b7fb1ebed478f989629445c269b33'}}
2024-08-29 15:19:31,444 - INFO - Created VN ctest-vn-04615433
2024-08-29 15:19:31,498 - DEBUG - VN ctest-vn-04615433 UUID is ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:32,100 - DEBUG - Response for create_network : {'network': {'id': 'b25ad180-4b83-43c5-9339-15ff804c32a0', 'name': 'ctest-vn-63213250', 'tenant_id': 'ec9b7fb1ebed478f989629445c269b33', 'project_id': 'ec9b7fb1ebed478f989629445c269b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-vn-63213250'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 15:19:32,365 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a53af73-349a-447e-ab68-5379cc22f589', 'name': '', 'tenant_id': 'ec9b7fb1ebed478f989629445c269b33', 'network_id': 'b25ad180-4b83-43c5-9339-15ff804c32a0', 'ip_version': 4, 'cidr': '35.229.247.0/26', 'allocation_pools': [{'start': '35.229.247.2', 'end': '35.229.247.62'}], 'gateway_ip': '35.229.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.229.247.2', 'tags': [], 'project_id': 'ec9b7fb1ebed478f989629445c269b33'}}
2024-08-29 15:19:32,386 - INFO - Created VN ctest-vn-63213250
2024-08-29 15:19:32,442 - DEBUG - VN ctest-vn-63213250 UUID is b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:32,576 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-04615433, 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-68473838:ctest-vn-63213250, 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-08-29 15:19:32,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffebe818-9477-4e19-889c-88193c63455b', 'name': 'ctest-vn-04615433', 'tenant_id': 'ec9b7fb1ebed478f989629445c269b33', 'project_id': 'ec9b7fb1ebed478f989629445c269b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['377fb51a-892f-4fc9-8be1-bb625730e435'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-vn-04615433'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-policy-allow-all-82549142']], 'subnet_ipam': [{'subnet_cidr': '170.204.246.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 15:19:33,149 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b25ad180-4b83-43c5-9339-15ff804c32a0', 'name': 'ctest-vn-63213250', 'tenant_id': 'ec9b7fb1ebed478f989629445c269b33', 'project_id': 'ec9b7fb1ebed478f989629445c269b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a53af73-349a-447e-ab68-5379cc22f589'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-vn-63213250'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-policy-allow-all-82549142']], 'subnet_ipam': [{'subnet_cidr': '35.229.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 15:19:33,303 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-29 15:19:33,602 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-29 15:19:33,637 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e076116d-b17e-439d-be41-49a52c501735
2024-08-29 15:19:33,654 - DEBUG - Requesting: http://10.0.0.33:8082/project/ec9b7fb1-ebed-478f-9896-29445c269b33
2024-08-29 15:19:33,737 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:33,750 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:33,759 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/584f00ec-0525-4057-b062-3dfedd8e6bfe
2024-08-29 15:19:33,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/584f00ec-0525-4057-b062-3dfedd8e6bfe
2024-08-29 15:19:33,776 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/baa3c31a-5220-47be-8876-8f9acbb3451a
2024-08-29 15:19:33,782 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 15:19:33,783 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:33,791 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/584f00ec-0525-4057-b062-3dfedd8e6bfe
2024-08-29 15:19:33,804 - INFO - Verified VN network id 9 for VN ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:33,804 - INFO - Verifications in API Server for VN ctest-vn-04615433 passed
2024-08-29 15:19:33,805 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:33,813 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/584f00ec-0525-4057-b062-3dfedd8e6bfe
2024-08-29 15:19:33,821 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/584f00ec-0525-4057-b062-3dfedd8e6bfe
2024-08-29 15:19:33,828 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/baa3c31a-5220-47be-8876-8f9acbb3451a
2024-08-29 15:19:33,842 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-04615433', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68473838', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18441088291466333721', 'uuid-lslong': '9843892527493760347'}, 'enable': 'true', 'created': '2024-08-29T15:19:31', 'last-modified': '2024-08-29T15:19:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962177'}
2024-08-29 15:19:33,850 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 15:19:33,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04615433 passed
2024-08-29 15:19:33,850 - DEBUG - ====Verifying policy data for ctest-vn-04615433 in API_Server ======
2024-08-29 15:19:33,850 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-29 15:19:33,857 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e076116d-b17e-439d-be41-49a52c501735
2024-08-29 15:19:33,870 - DEBUG - Requesting: http://10.0.0.33:8082/project/ec9b7fb1-ebed-478f-9896-29445c269b33
2024-08-29 15:19:33,943 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ffebe818-9477-4e19-889c-88193c63455b
2024-08-29 15:19:33,953 - DEBUG - ==>Verifying data for policy with id: 2d2aba3a-edc1-4f02-9eac-6ced2fb8e892, fqn: ['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-policy-allow-all-82549142']
2024-08-29 15:19:33,953 - INFO - VN ctest-vn-04615433 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 15:19:33,953 - DEBUG - Verifying the vn in opserver
2024-08-29 15:19:33,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-04615433 virtual network link through opserver 10.0.0.33
2024-08-29 15:19:33,953 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-08-29 15:19:34,253 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-08-29 15:19:34,316 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-04615433', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-04615433?flat'}
2024-08-29 15:19:34,316 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-04615433 is found in opserver
2024-08-29 15:19:34,328 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 15:19:34,334 - DEBUG - VRF ids for VN ctest-vn-04615433: {}
2024-08-29 15:19:34,334 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-29 15:19:34,341 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e076116d-b17e-439d-be41-49a52c501735
2024-08-29 15:19:34,354 - DEBUG - Requesting: http://10.0.0.33:8082/project/ec9b7fb1-ebed-478f-9896-29445c269b33
2024-08-29 15:19:34,435 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:34,449 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:34,463 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e5940bc-e6c3-4436-92cc-c7d35c6594af
2024-08-29 15:19:34,473 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e5940bc-e6c3-4436-92cc-c7d35c6594af
2024-08-29 15:19:34,482 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b2679c23-b68c-4c2f-8fe5-f72c029d788f
2024-08-29 15:19:34,490 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 15:19:34,490 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:34,499 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e5940bc-e6c3-4436-92cc-c7d35c6594af
2024-08-29 15:19:34,515 - INFO - Verified VN network id 10 for VN b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:34,515 - INFO - Verifications in API Server for VN ctest-vn-63213250 passed
2024-08-29 15:19:34,515 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:34,528 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e5940bc-e6c3-4436-92cc-c7d35c6594af
2024-08-29 15:19:34,537 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e5940bc-e6c3-4436-92cc-c7d35c6594af
2024-08-29 15:19:34,547 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b2679c23-b68c-4c2f-8fe5-f72c029d788f
2024-08-29 15:19:34,566 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-63213250', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68473838', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12851814835608044485', 'uuid-lslong': '10608534584361235104'}, 'enable': 'true', 'created': '2024-08-29T15:19:32', 'last-modified': '2024-08-29T15:19:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438687'}
2024-08-29 15:19:34,575 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 15:19:34,575 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63213250 passed
2024-08-29 15:19:34,575 - DEBUG - ====Verifying policy data for ctest-vn-63213250 in API_Server ======
2024-08-29 15:19:34,576 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-29 15:19:34,582 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e076116d-b17e-439d-be41-49a52c501735
2024-08-29 15:19:34,600 - DEBUG - Requesting: http://10.0.0.33:8082/project/ec9b7fb1-ebed-478f-9896-29445c269b33
2024-08-29 15:19:34,676 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b25ad180-4b83-43c5-9339-15ff804c32a0
2024-08-29 15:19:34,686 - DEBUG - ==>Verifying data for policy with id: 2d2aba3a-edc1-4f02-9eac-6ced2fb8e892, fqn: ['default-domain', 'ctest-TestBasicPolicy-68473838', 'ctest-policy-allow-all-82549142']
2024-08-29 15:19:34,686 - INFO - VN ctest-vn-63213250 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 15:19:34,687 - DEBUG - Verifying the vn in opserver
2024-08-29 15:19:34,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-63213250 virtual network link through opserver 10.0.0.33
2024-08-29 15:19:34,687 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-08-29 15:19:34,698 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-63213250', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-63213250?flat'}
2024-08-29 15:19:34,698 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68473838:ctest-vn-63213250 is found in opserver
2024-08-29 15:19:34,711 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 15:19:34,716 - DEBUG - VRF ids for VN ctest-vn-63213250: {}
2024-08-29 15:19:34,778 - DEBUG - Services list from nova: [