2024-09-17 10:32:17,320 - INFO - Domain Default found not creating
2024-09-17 10:32:17,512 - INFO - Project ctest-TestBasicPolicy-99308268 not found, creating it
2024-09-17 10:32:18,040 - INFO - Created Project:ctest-TestBasicPolicy-99308268, ID : 1cbb7c08-3a45-4558-acb7-7ce26810b01c
2024-09-17 10:32:19,724 - INFO - ================================================================================
2024-09-17 10:32:19,724 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 10:32:19,724 - 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-17 10:32:19,989 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.13': '0'}} with
2024-09-17 10:32:19,989 - INFO - Initial checks done. Running the testcase now
2024-09-17 10:32:19,990 - INFO -
2024-09-17 10:32:20,669 - DEBUG - Response for create_network : {'network': {'id': '9028d4f7-e6b1-401f-b9c2-bde7c597b51e', 'name': 'ctest-vn-16521661', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-16521661'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:32:20,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '18504587-ff2d-4300-a883-83fac3cd043c', 'name': '', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'network_id': '9028d4f7-e6b1-401f-b9c2-bde7c597b51e', 'ip_version': 4, 'cidr': '113.21.56.64/26', 'allocation_pools': [{'start': '113.21.56.66', 'end': '113.21.56.126'}], 'gateway_ip': '113.21.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.21.56.66', 'tags': [], 'project_id': '1cbb7c083a454558acb77ce26810b01c'}}
2024-09-17 10:32:20,865 - INFO - Created VN ctest-vn-16521661
2024-09-17 10:32:20,926 - DEBUG - VN ctest-vn-16521661 UUID is 9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:21,276 - DEBUG - Response for create_network : {'network': {'id': '518b1dcd-1e89-4fe4-85d4-a74e8560939d', 'name': 'ctest-vn-28305379', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-28305379'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:32:21,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c50c00c-9961-492a-ba9b-9fe308de5d06', 'name': '', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'network_id': '518b1dcd-1e89-4fe4-85d4-a74e8560939d', 'ip_version': 4, 'cidr': '108.218.60.128/26', 'allocation_pools': [{'start': '108.218.60.130', 'end': '108.218.60.190'}], 'gateway_ip': '108.218.60.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.218.60.130', 'tags': [], 'project_id': '1cbb7c083a454558acb77ce26810b01c'}}
2024-09-17 10:32:21,545 - INFO - Created VN ctest-vn-28305379
2024-09-17 10:32:21,606 - DEBUG - VN ctest-vn-28305379 UUID is 518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:21,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661, 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-99308268:ctest-vn-28305379, 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-17 10:32:22,078 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9028d4f7-e6b1-401f-b9c2-bde7c597b51e', 'name': 'ctest-vn-16521661', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18504587-ff2d-4300-a883-83fac3cd043c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-16521661'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404']], 'subnet_ipam': [{'subnet_cidr': '113.21.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:32:22,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518b1dcd-1e89-4fe4-85d4-a74e8560939d', 'name': 'ctest-vn-28305379', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c50c00c-9961-492a-ba9b-9fe308de5d06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-28305379'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404']], 'subnet_ipam': [{'subnet_cidr': '108.218.60.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:32:22,506 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-17 10:32:22,806 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-17 10:32:22,840 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43
2024-09-17 10:32:22,855 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c
2024-09-17 10:32:22,943 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:22,962 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:22,977 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935
2024-09-17 10:32:22,988 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935
2024-09-17 10:32:22,998 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8e1b18f8-8f40-4f6d-9303-0af5b0c838a8
2024-09-17 10:32:23,006 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 10:32:23,006 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:23,021 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935
2024-09-17 10:32:23,044 - INFO - Verified VN network id 8 for VN 9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:23,044 - INFO - Verifications in API Server for VN ctest-vn-16521661 passed
2024-09-17 10:32:23,044 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:23,063 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935
2024-09-17 10:32:23,075 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935
2024-09-17 10:32:23,087 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8e1b18f8-8f40-4f6d-9303-0af5b0c838a8
2024-09-17 10:32:23,102 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99308268', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10387786701722435615', 'uuid-lslong': '13385469845648684318'}, 'enable': 'true', 'created': '2024-09-17T10:32:20', 'last-modified': '2024-09-17T10:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048558'}
2024-09-17 10:32:23,111 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 10:32:23,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16521661 passed
2024-09-17 10:32:23,111 - DEBUG - ====Verifying policy data for ctest-vn-16521661 in API_Server ======
2024-09-17 10:32:23,111 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-17 10:32:23,119 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43
2024-09-17 10:32:23,135 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c
2024-09-17 10:32:23,217 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e
2024-09-17 10:32:23,236 - DEBUG - ==>Verifying data for policy with id: 94bc4489-e9c0-46a4-94e0-9f5878438478, fqn: ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404']
2024-09-17 10:32:23,237 - INFO - VN ctest-vn-16521661 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 10:32:23,237 - DEBUG - Verifying the vn in opserver
2024-09-17 10:32:23,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661 virtual network link through opserver 10.0.0.29
2024-09-17 10:32:23,237 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-17 10:32:23,538 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-17 10:32:23,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661?flat'}
2024-09-17 10:32:23,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661 is found in opserver
2024-09-17 10:32:23,623 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 10:32:23,629 - DEBUG - VRF ids for VN ctest-vn-16521661: {}
2024-09-17 10:32:23,629 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-17 10:32:23,636 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43
2024-09-17 10:32:23,650 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c
2024-09-17 10:32:23,734 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:23,751 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:23,767 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e
2024-09-17 10:32:23,777 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e
2024-09-17 10:32:23,788 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/fb9b386a-22f7-461b-82a0-8521325751cf
2024-09-17 10:32:23,797 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 10:32:23,797 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:23,813 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e
2024-09-17 10:32:23,839 - INFO - Verified VN network id 9 for VN 518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:23,839 - INFO - Verifications in API Server for VN ctest-vn-28305379 passed
2024-09-17 10:32:23,839 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:23,854 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e
2024-09-17 10:32:23,865 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e
2024-09-17 10:32:23,878 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/fb9b386a-22f7-461b-82a0-8521325751cf
2024-09-17 10:32:23,895 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99308268', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5875822905652760548', 'uuid-lslong': '9643516657794061213'}, 'enable': 'true', 'created': '2024-09-17T10:32:21', 'last-modified': '2024-09-17T10:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591247'}
2024-09-17 10:32:23,903 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 10:32:23,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28305379 passed
2024-09-17 10:32:23,903 - DEBUG - ====Verifying policy data for ctest-vn-28305379 in API_Server ======
2024-09-17 10:32:23,903 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-17 10:32:23,910 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43
2024-09-17 10:32:23,926 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c
2024-09-17 10:32:24,017 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d
2024-09-17 10:32:24,034 - DEBUG - ==>Verifying data for policy with id: 94bc4489-e9c0-46a4-94e0-9f5878438478, fqn: ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404']
2024-09-17 10:32:24,034 - INFO - VN ctest-vn-28305379 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 10:32:24,034 - DEBUG - Verifying the vn in opserver
2024-09-17 10:32:24,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379 virtual network link through opserver 10.0.0.29
2024-09-17 10:32:24,034 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-17 10:32:24,048 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379?flat'}
2024-09-17 10:32:24,048 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379 is found in opserver
2024-09-17 10:32:24,060 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 10:32:24,065 - DEBUG - VRF ids for VN ctest-vn-28305379: {}
2024-09-17 10:32:24,133 - DEBUG - Services list from nova: [