2024-11-10 19:30:19,623 - INFO - Domain Default found not creating
2024-11-10 19:30:19,784 - INFO - Project ctest-TestBasicPolicy-16575001 not found, creating it
2024-11-10 19:30:20,277 - INFO - Created Project:ctest-TestBasicPolicy-16575001, ID : 21084be0-8a72-4561-9061-3a2190611ccf
2024-11-10 19:30:21,879 - INFO - ================================================================================
2024-11-10 19:30:21,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 19:30:21,879 - 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-10 19:30:22,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.10': '0'}} with
2024-11-10 19:30:22,139 - INFO - Initial checks done. Running the testcase now
2024-11-10 19:30:22,139 - INFO -
2024-11-10 19:30:22,753 - DEBUG - Response for create_network : {'network': {'id': 'eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad', 'name': 'ctest-vn-43150353', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-43150353'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 19:30:22,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '38cb0d0d-d7aa-4711-8181-6aa6b8ca4de8', 'name': '', 'tenant_id': '21084be08a72456190613a2190611ccf', 'network_id': 'eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad', 'ip_version': 4, 'cidr': '197.49.36.0/26', 'allocation_pools': [{'start': '197.49.36.2', 'end': '197.49.36.62'}], 'gateway_ip': '197.49.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.49.36.2', 'tags': [], 'project_id': '21084be08a72456190613a2190611ccf'}}
2024-11-10 19:30:22,965 - INFO - Created VN ctest-vn-43150353
2024-11-10 19:30:23,021 - DEBUG - VN ctest-vn-43150353 UUID is eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:23,385 - DEBUG - Response for create_network : {'network': {'id': 'aa39258c-a10c-4bd6-b0f8-5a39443eefe8', 'name': 'ctest-vn-34637960', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-34637960'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 19:30:23,569 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b24ec520-e4c0-47d2-8948-74ac0dcb9aea', 'name': '', 'tenant_id': '21084be08a72456190613a2190611ccf', 'network_id': 'aa39258c-a10c-4bd6-b0f8-5a39443eefe8', 'ip_version': 4, 'cidr': '126.41.151.192/26', 'allocation_pools': [{'start': '126.41.151.194', 'end': '126.41.151.254'}], 'gateway_ip': '126.41.151.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.41.151.194', 'tags': [], 'project_id': '21084be08a72456190613a2190611ccf'}}
2024-11-10 19:30:23,591 - INFO - Created VN ctest-vn-34637960
2024-11-10 19:30:23,649 - DEBUG - VN ctest-vn-34637960 UUID is aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:23,796 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353, 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-16575001:ctest-vn-34637960, 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-10 19:30:24,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad', 'name': 'ctest-vn-43150353', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38cb0d0d-d7aa-4711-8181-6aa6b8ca4de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-43150353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861']], 'subnet_ipam': [{'subnet_cidr': '197.49.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 19:30:24,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa39258c-a10c-4bd6-b0f8-5a39443eefe8', 'name': 'ctest-vn-34637960', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b24ec520-e4c0-47d2-8948-74ac0dcb9aea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-34637960'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861']], 'subnet_ipam': [{'subnet_cidr': '126.41.151.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 19:30:24,609 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-11-10 19:30:24,947 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-11-10 19:30:24,980 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076
2024-11-10 19:30:24,995 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf
2024-11-10 19:30:25,100 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:25,120 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:25,139 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585
2024-11-10 19:30:25,149 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585
2024-11-10 19:30:25,158 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/4d48a4a0-cbf8-4f3a-b54f-d5169f00f358
2024-11-10 19:30:25,166 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 19:30:25,166 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:25,181 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585
2024-11-10 19:30:25,206 - INFO - Verified VN network id 8 for VN eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:25,206 - INFO - Verifications in API Server for VN ctest-vn-43150353 passed
2024-11-10 19:30:25,207 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:25,224 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585
2024-11-10 19:30:25,234 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585
2024-11-10 19:30:25,245 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/4d48a4a0-cbf8-4f3a-b54f-d5169f00f358
2024-11-10 19:30:25,262 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16575001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17196646358377253809', 'uuid-lslong': '11492696321746145709'}, 'enable': 'true', 'created': '2024-11-10T19:30:22', 'last-modified': '2024-11-10T19:30:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.138114'}
2024-11-10 19:30:25,273 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 19:30:25,273 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43150353 passed
2024-11-10 19:30:25,274 - DEBUG - ====Verifying policy data for ctest-vn-43150353 in API_Server ======
2024-11-10 19:30:25,274 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-11-10 19:30:25,285 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076
2024-11-10 19:30:25,311 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf
2024-11-10 19:30:25,406 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad
2024-11-10 19:30:25,421 - DEBUG - ==>Verifying data for policy with id: 355a273e-a3b0-4c33-9ba8-1ddc74673815, fqn: ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861']
2024-11-10 19:30:25,422 - INFO - VN ctest-vn-43150353 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 19:30:25,422 - DEBUG - Verifying the vn in opserver
2024-11-10 19:30:25,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353 virtual network link through opserver 10.0.0.56
2024-11-10 19:30:25,422 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-11-10 19:30:25,758 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-11-10 19:30:25,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353?flat'}
2024-11-10 19:30:25,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353 is found in opserver
2024-11-10 19:30:25,842 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 19:30:25,852 - DEBUG - VRF ids for VN ctest-vn-43150353: {}
2024-11-10 19:30:25,852 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-11-10 19:30:25,859 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076
2024-11-10 19:30:25,874 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf
2024-11-10 19:30:25,966 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:25,984 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:26,000 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07
2024-11-10 19:30:26,010 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07
2024-11-10 19:30:26,019 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a7323bb5-5197-4c6b-8835-bc00c00e06c2
2024-11-10 19:30:26,027 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 19:30:26,027 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:26,042 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07
2024-11-10 19:30:26,065 - INFO - Verified VN network id 9 for VN aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:26,066 - INFO - Verifications in API Server for VN ctest-vn-34637960 passed
2024-11-10 19:30:26,066 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:26,081 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07
2024-11-10 19:30:26,091 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07
2024-11-10 19:30:26,102 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a7323bb5-5197-4c6b-8835-bc00c00e06c2
2024-11-10 19:30:26,123 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16575001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12265876346047843286', 'uuid-lslong': '12752041546904170472'}, 'enable': 'true', 'created': '2024-11-10T19:30:23', 'last-modified': '2024-11-10T19:30:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.723922'}
2024-11-10 19:30:26,132 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 19:30:26,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34637960 passed
2024-11-10 19:30:26,133 - DEBUG - ====Verifying policy data for ctest-vn-34637960 in API_Server ======
2024-11-10 19:30:26,133 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-11-10 19:30:26,139 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076
2024-11-10 19:30:26,154 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf
2024-11-10 19:30:26,263 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8
2024-11-10 19:30:26,282 - DEBUG - ==>Verifying data for policy with id: 355a273e-a3b0-4c33-9ba8-1ddc74673815, fqn: ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861']
2024-11-10 19:30:26,282 - INFO - VN ctest-vn-34637960 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 19:30:26,282 - DEBUG - Verifying the vn in opserver
2024-11-10 19:30:26,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960 virtual network link through opserver 10.0.0.56
2024-11-10 19:30:26,282 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-11-10 19:30:26,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960?flat'}
2024-11-10 19:30:26,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960 is found in opserver
2024-11-10 19:30:26,307 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 19:30:26,313 - DEBUG - VRF ids for VN ctest-vn-34637960: {}
2024-11-10 19:30:26,373 - DEBUG - Services list from nova: [