2024-09-15 11:53:55,090 - INFO - Domain Default found not creating
2024-09-15 11:53:55,303 - INFO - Project ctest-TestBasicPolicy-29884371 not found, creating it
2024-09-15 11:53:55,823 - INFO - Created Project:ctest-TestBasicPolicy-29884371, ID : 1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c
2024-09-15 11:53:57,508 - INFO - ================================================================================
2024-09-15 11:53:57,508 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-15 11:53:57,508 - 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-15 11:53:57,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.6': '0'}} with
2024-09-15 11:53:57,783 - INFO - Initial checks done. Running the testcase now
2024-09-15 11:53:57,783 - INFO -
2024-09-15 11:53:58,425 - DEBUG - Response for create_network : {'network': {'id': '38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5', 'name': 'ctest-vn-45206401', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-45206401'], 'port_security_enabled': True, 'description': ''}}
2024-09-15 11:53:58,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c62ecbc2-f43e-4903-9232-b555ab3f88d8', 'name': '', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'network_id': '38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5', 'ip_version': 4, 'cidr': '163.27.126.192/26', 'allocation_pools': [{'start': '163.27.126.194', 'end': '163.27.126.254'}], 'gateway_ip': '163.27.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.27.126.194', 'tags': [], 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c'}}
2024-09-15 11:53:58,660 - INFO - Created VN ctest-vn-45206401
2024-09-15 11:53:58,724 - DEBUG - VN ctest-vn-45206401 UUID is 38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:53:59,091 - DEBUG - Response for create_network : {'network': {'id': '7c6e3274-f77f-4f6a-8067-37fcd79b1ed0', 'name': 'ctest-vn-41034183', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-41034183'], 'port_security_enabled': True, 'description': ''}}
2024-09-15 11:53:59,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b04ae27c-9c0c-4e1e-985e-8ec63b196133', 'name': '', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'network_id': '7c6e3274-f77f-4f6a-8067-37fcd79b1ed0', 'ip_version': 4, 'cidr': '135.77.112.128/26', 'allocation_pools': [{'start': '135.77.112.130', 'end': '135.77.112.190'}], 'gateway_ip': '135.77.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.77.112.130', 'tags': [], 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c'}}
2024-09-15 11:53:59,340 - INFO - Created VN ctest-vn-41034183
2024-09-15 11:53:59,404 - DEBUG - VN ctest-vn-41034183 UUID is 7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:53:59,539 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401, 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-29884371:ctest-vn-41034183, 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-15 11:53:59,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5', 'name': 'ctest-vn-45206401', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c62ecbc2-f43e-4903-9232-b555ab3f88d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-45206401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600']], 'subnet_ipam': [{'subnet_cidr': '163.27.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-15 11:54:00,164 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c6e3274-f77f-4f6a-8067-37fcd79b1ed0', 'name': 'ctest-vn-41034183', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b04ae27c-9c0c-4e1e-985e-8ec63b196133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-41034183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600']], 'subnet_ipam': [{'subnet_cidr': '135.77.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-15 11:54:00,369 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-15 11:54:00,684 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-15 11:54:00,728 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6
2024-09-15 11:54:00,746 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c
2024-09-15 11:54:00,848 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:54:00,870 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:54:00,887 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb
2024-09-15 11:54:00,898 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb
2024-09-15 11:54:00,908 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/af46f370-8685-44b7-8f9d-87be26c025d3
2024-09-15 11:54:00,917 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-15 11:54:00,917 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:54:00,932 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb
2024-09-15 11:54:00,956 - INFO - Verified VN network id 8 for VN 38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:54:00,957 - INFO - Verifications in API Server for VN ctest-vn-45206401 passed
2024-09-15 11:54:00,957 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:54:00,974 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb
2024-09-15 11:54:00,984 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb
2024-09-15 11:54:00,993 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/af46f370-8685-44b7-8f9d-87be26c025d3
2024-09-15 11:54:01,010 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29884371', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4084611309675892678', 'uuid-lslong': '11651457128562221541'}, 'enable': 'true', 'created': '2024-09-15T11:53:58', 'last-modified': '2024-09-15T11:53:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.162697'}
2024-09-15 11:54:01,019 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-15 11:54:01,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45206401 passed
2024-09-15 11:54:01,019 - DEBUG - ====Verifying policy data for ctest-vn-45206401 in API_Server ======
2024-09-15 11:54:01,019 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-15 11:54:01,027 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6
2024-09-15 11:54:01,043 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c
2024-09-15 11:54:01,144 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5
2024-09-15 11:54:01,162 - DEBUG - ==>Verifying data for policy with id: 2780c80a-23d6-40e4-a0ca-98b613fd678f, fqn: ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600']
2024-09-15 11:54:01,162 - INFO - VN ctest-vn-45206401 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-15 11:54:01,162 - DEBUG - Verifying the vn in opserver
2024-09-15 11:54:01,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401 virtual network link through opserver 10.0.0.28
2024-09-15 11:54:01,163 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-15 11:54:01,465 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-15 11:54:01,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401?flat'}
2024-09-15 11:54:01,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401 is found in opserver
2024-09-15 11:54:01,557 - DEBUG - Do not have enough data to verify VN in agent
2024-09-15 11:54:01,564 - DEBUG - VRF ids for VN ctest-vn-45206401: {}
2024-09-15 11:54:01,564 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-15 11:54:01,571 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6
2024-09-15 11:54:01,587 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c
2024-09-15 11:54:01,667 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:54:01,684 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:54:01,698 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1
2024-09-15 11:54:01,710 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1
2024-09-15 11:54:01,720 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/bda92420-6a4d-4790-b57f-7311386474e6
2024-09-15 11:54:01,730 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-15 11:54:01,730 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:54:01,747 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1
2024-09-15 11:54:01,771 - INFO - Verified VN network id 9 for VN 7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:54:01,771 - INFO - Verifications in API Server for VN ctest-vn-41034183 passed
2024-09-15 11:54:01,772 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:54:01,794 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1
2024-09-15 11:54:01,813 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1
2024-09-15 11:54:01,826 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/bda92420-6a4d-4790-b57f-7311386474e6
2024-09-15 11:54:01,843 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29884371', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8966159386091147114', 'uuid-lslong': '9252425518544527056'}, 'enable': 'true', 'created': '2024-09-15T11:53:59', 'last-modified': '2024-09-15T11:54:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.727085'}
2024-09-15 11:54:01,850 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-15 11:54:01,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41034183 passed
2024-09-15 11:54:01,850 - DEBUG - ====Verifying policy data for ctest-vn-41034183 in API_Server ======
2024-09-15 11:54:01,851 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-15 11:54:01,857 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6
2024-09-15 11:54:01,873 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c
2024-09-15 11:54:01,956 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0
2024-09-15 11:54:01,974 - DEBUG - ==>Verifying data for policy with id: 2780c80a-23d6-40e4-a0ca-98b613fd678f, fqn: ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600']
2024-09-15 11:54:01,974 - INFO - VN ctest-vn-41034183 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-15 11:54:01,974 - DEBUG - Verifying the vn in opserver
2024-09-15 11:54:01,974 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183 virtual network link through opserver 10.0.0.28
2024-09-15 11:54:01,974 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-15 11:54:01,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183?flat'}
2024-09-15 11:54:01,988 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183 is found in opserver
2024-09-15 11:54:01,999 - DEBUG - Do not have enough data to verify VN in agent
2024-09-15 11:54:02,005 - DEBUG - VRF ids for VN ctest-vn-41034183: {}
2024-09-15 11:54:02,067 - DEBUG - Services list from nova: [