2024-09-03 14:45:47,486 - INFO - Domain Default found not creating
2024-09-03 14:45:47,660 - INFO - Project ctest-TestBasicPolicy-11374359 not found, creating it
2024-09-03 14:45:48,201 - INFO - Created Project:ctest-TestBasicPolicy-11374359, ID : acda3be0-043f-49e9-8624-f86b5165ce36
2024-09-03 14:45:49,829 - INFO - ================================================================================
2024-09-03 14:45:49,829 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-03 14:45:49,829 - 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-03 14:45:50,085 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.10': '0'}} with
2024-09-03 14:45:50,085 - INFO - Initial checks done. Running the testcase now
2024-09-03 14:45:50,085 - INFO -
2024-09-03 14:45:50,728 - DEBUG - Response for create_network : {'network': {'id': 'f14fc459-2b83-4f00-83d4-0f5a15254273', 'name': 'ctest-vn-79001978', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-79001978'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 14:45:50,960 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd71f608-9ef7-4521-88c1-4e76427df2f8', 'name': '', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'network_id': 'f14fc459-2b83-4f00-83d4-0f5a15254273', 'ip_version': 4, 'cidr': '24.83.96.0/26', 'allocation_pools': [{'start': '24.83.96.2', 'end': '24.83.96.62'}], 'gateway_ip': '24.83.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.83.96.2', 'tags': [], 'project_id': 'acda3be0043f49e98624f86b5165ce36'}}
2024-09-03 14:45:50,982 - INFO - Created VN ctest-vn-79001978
2024-09-03 14:45:51,035 - DEBUG - VN ctest-vn-79001978 UUID is f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:51,419 - DEBUG - Response for create_network : {'network': {'id': '2dcc82a7-232a-4f93-a2d1-eb157b85b0b4', 'name': 'ctest-vn-53466959', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-53466959'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 14:45:51,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '84106e44-7fe0-4b17-aa59-b38901cc3c2e', 'name': '', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'network_id': '2dcc82a7-232a-4f93-a2d1-eb157b85b0b4', 'ip_version': 4, 'cidr': '58.13.137.0/26', 'allocation_pools': [{'start': '58.13.137.2', 'end': '58.13.137.62'}], 'gateway_ip': '58.13.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.13.137.2', 'tags': [], 'project_id': 'acda3be0043f49e98624f86b5165ce36'}}
2024-09-03 14:45:51,662 - INFO - Created VN ctest-vn-53466959
2024-09-03 14:45:51,715 - DEBUG - VN ctest-vn-53466959 UUID is 2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:51,850 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978, 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-11374359:ctest-vn-53466959, 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-03 14:45:52,185 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f14fc459-2b83-4f00-83d4-0f5a15254273', 'name': 'ctest-vn-79001978', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd71f608-9ef7-4521-88c1-4e76427df2f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-79001978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933']], 'subnet_ipam': [{'subnet_cidr': '24.83.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 14:45:52,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dcc82a7-232a-4f93-a2d1-eb157b85b0b4', 'name': 'ctest-vn-53466959', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84106e44-7fe0-4b17-aa59-b38901cc3c2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-53466959'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933']], 'subnet_ipam': [{'subnet_cidr': '58.13.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 14:45:52,651 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-03 14:45:52,954 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-03 14:45:52,987 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5
2024-09-03 14:45:53,002 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36
2024-09-03 14:45:53,086 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:53,098 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:53,107 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2
2024-09-03 14:45:53,113 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2
2024-09-03 14:45:53,121 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/4a6e6f4c-bc38-4a96-bc79-464d26f827bf
2024-09-03 14:45:53,129 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 14:45:53,129 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:53,144 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2
2024-09-03 14:45:53,168 - INFO - Verified VN network id 8 for VN f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:53,168 - INFO - Verifications in API Server for VN ctest-vn-79001978 passed
2024-09-03 14:45:53,169 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:53,178 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2
2024-09-03 14:45:53,193 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2
2024-09-03 14:45:53,200 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/4a6e6f4c-bc38-4a96-bc79-464d26f827bf
2024-09-03 14:45:53,211 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11374359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17388332573561933568', 'uuid-lslong': '9499234393607455347'}, 'enable': 'true', 'created': '2024-09-03T14:45:50', 'last-modified': '2024-09-03T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050962'}
2024-09-03 14:45:53,217 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 14:45:53,217 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79001978 passed
2024-09-03 14:45:53,218 - DEBUG - ====Verifying policy data for ctest-vn-79001978 in API_Server ======
2024-09-03 14:45:53,218 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-03 14:45:53,223 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5
2024-09-03 14:45:53,235 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36
2024-09-03 14:45:53,302 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273
2024-09-03 14:45:53,310 - DEBUG - ==>Verifying data for policy with id: 1f3e7fac-61c7-4870-9a7e-775e767046bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933']
2024-09-03 14:45:53,310 - INFO - VN ctest-vn-79001978 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 14:45:53,311 - DEBUG - Verifying the vn in opserver
2024-09-03 14:45:53,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978 virtual network link through opserver 10.0.0.42
2024-09-03 14:45:53,311 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-03 14:45:53,605 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-03 14:45:53,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978?flat'}
2024-09-03 14:45:53,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978 is found in opserver
2024-09-03 14:45:53,685 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 14:45:53,690 - DEBUG - VRF ids for VN ctest-vn-79001978: {}
2024-09-03 14:45:53,691 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-03 14:45:53,696 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5
2024-09-03 14:45:53,707 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36
2024-09-03 14:45:53,774 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:53,785 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:53,792 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f
2024-09-03 14:45:53,799 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f
2024-09-03 14:45:53,805 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/73229f31-2338-43fb-ab4d-6bc098c80997
2024-09-03 14:45:53,810 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 14:45:53,811 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:53,817 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f
2024-09-03 14:45:53,828 - INFO - Verified VN network id 9 for VN 2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:53,828 - INFO - Verifications in API Server for VN ctest-vn-53466959 passed
2024-09-03 14:45:53,828 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:53,835 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f
2024-09-03 14:45:53,842 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f
2024-09-03 14:45:53,849 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/73229f31-2338-43fb-ab4d-6bc098c80997
2024-09-03 14:45:53,862 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11374359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3300156281316855699', 'uuid-lslong': '11732416981776052404'}, 'enable': 'true', 'created': '2024-09-03T14:45:51', 'last-modified': '2024-09-03T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441458'}
2024-09-03 14:45:53,869 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 14:45:53,869 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53466959 passed
2024-09-03 14:45:53,869 - DEBUG - ====Verifying policy data for ctest-vn-53466959 in API_Server ======
2024-09-03 14:45:53,869 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-03 14:45:53,875 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5
2024-09-03 14:45:53,887 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36
2024-09-03 14:45:53,970 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4
2024-09-03 14:45:53,983 - DEBUG - ==>Verifying data for policy with id: 1f3e7fac-61c7-4870-9a7e-775e767046bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933']
2024-09-03 14:45:53,983 - INFO - VN ctest-vn-53466959 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 14:45:53,983 - DEBUG - Verifying the vn in opserver
2024-09-03 14:45:53,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959 virtual network link through opserver 10.0.0.42
2024-09-03 14:45:53,983 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-03 14:45:53,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959?flat'}
2024-09-03 14:45:53,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959 is found in opserver
2024-09-03 14:45:54,006 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 14:45:54,010 - DEBUG - VRF ids for VN ctest-vn-53466959: {}
2024-09-03 14:45:54,071 - DEBUG - Services list from nova: [