2024-11-10 23:23:38,262 - INFO - Domain Default found not creating
2024-11-10 23:23:38,548 - INFO - Project ctest-TestBasicPolicy-00147455 not found, creating it
2024-11-10 23:23:39,401 - INFO - Created Project:ctest-TestBasicPolicy-00147455, ID : 2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f
2024-11-10 23:23:41,998 - INFO - ================================================================================
2024-11-10 23:23:41,998 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 23:23:41,998 - 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 23:23:42,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.13': '0'}} with
2024-11-10 23:23:42,323 - INFO - Initial checks done. Running the testcase now
2024-11-10 23:23:42,323 - INFO -
2024-11-10 23:23:43,140 - DEBUG - Response for create_network : {'network': {'id': '6e11a851-e893-42d5-b317-d3e96466c526', 'name': 'ctest-vn-38581972', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-38581972'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 23:23:43,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eed0f3ef-5997-4361-84f8-a992e6cb64f5', 'name': '', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'network_id': '6e11a851-e893-42d5-b317-d3e96466c526', 'ip_version': 4, 'cidr': '185.127.178.0/26', 'allocation_pools': [{'start': '185.127.178.2', 'end': '185.127.178.62'}], 'gateway_ip': '185.127.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.127.178.2', 'tags': [], 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f'}}
2024-11-10 23:23:43,396 - INFO - Created VN ctest-vn-38581972
2024-11-10 23:23:43,461 - DEBUG - VN ctest-vn-38581972 UUID is 6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:43,974 - DEBUG - Response for create_network : {'network': {'id': '7cd9e4fc-f54a-47a6-af9b-74242ee94da3', 'name': 'ctest-vn-10714447', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-10714447'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 23:23:44,226 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8b908ff-b755-4717-9847-a4a776f9b880', 'name': '', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'network_id': '7cd9e4fc-f54a-47a6-af9b-74242ee94da3', 'ip_version': 4, 'cidr': '83.8.146.64/26', 'allocation_pools': [{'start': '83.8.146.66', 'end': '83.8.146.126'}], 'gateway_ip': '83.8.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.8.146.66', 'tags': [], 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f'}}
2024-11-10 23:23:44,248 - INFO - Created VN ctest-vn-10714447
2024-11-10 23:23:44,309 - DEBUG - VN ctest-vn-10714447 UUID is 7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:44,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972, 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-00147455:ctest-vn-10714447, 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 23:23:44,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e11a851-e893-42d5-b317-d3e96466c526', 'name': 'ctest-vn-38581972', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eed0f3ef-5997-4361-84f8-a992e6cb64f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-38581972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160']], 'subnet_ipam': [{'subnet_cidr': '185.127.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 23:23:45,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cd9e4fc-f54a-47a6-af9b-74242ee94da3', 'name': 'ctest-vn-10714447', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8b908ff-b755-4717-9847-a4a776f9b880'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-10714447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160']], 'subnet_ipam': [{'subnet_cidr': '83.8.146.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 23:23:45,417 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-10 23:23:45,735 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-10 23:23:45,783 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff
2024-11-10 23:23:45,815 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f
2024-11-10 23:23:45,953 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:45,976 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:45,995 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f
2024-11-10 23:23:46,009 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f
2024-11-10 23:23:46,023 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9993eb31-0fa9-4136-be0f-98423390057f
2024-11-10 23:23:46,035 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 23:23:46,035 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:46,057 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f
2024-11-10 23:23:46,103 - INFO - Verified VN network id 7 for VN 6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:46,103 - INFO - Verifications in API Server for VN ctest-vn-38581972 passed
2024-11-10 23:23:46,103 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:46,127 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f
2024-11-10 23:23:46,139 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f
2024-11-10 23:23:46,150 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9993eb31-0fa9-4136-be0f-98423390057f
2024-11-10 23:23:46,172 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00147455', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7931305488523936469', 'uuid-lslong': '12905016256618743078'}, 'enable': 'true', 'created': '2024-11-10T23:23:43', 'last-modified': '2024-11-10T23:23:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262669'}
2024-11-10 23:23:46,194 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 23:23:46,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38581972 passed
2024-11-10 23:23:46,195 - DEBUG - ====Verifying policy data for ctest-vn-38581972 in API_Server ======
2024-11-10 23:23:46,195 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-10 23:23:46,207 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff
2024-11-10 23:23:46,234 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f
2024-11-10 23:23:46,358 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526
2024-11-10 23:23:46,385 - DEBUG - ==>Verifying data for policy with id: f03625bc-8a70-45d0-bcd1-d085aae9e79a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160']
2024-11-10 23:23:46,385 - INFO - VN ctest-vn-38581972 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 23:23:46,385 - DEBUG - Verifying the vn in opserver
2024-11-10 23:23:46,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972 virtual network link through opserver 10.0.0.17
2024-11-10 23:23:46,386 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-10 23:23:46,695 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-10 23:23:46,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972?flat'}
2024-11-10 23:23:46,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972 is found in opserver
2024-11-10 23:23:46,890 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 23:23:46,899 - DEBUG - VRF ids for VN ctest-vn-38581972: {}
2024-11-10 23:23:46,899 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-10 23:23:46,910 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff
2024-11-10 23:23:46,944 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f
2024-11-10 23:23:47,083 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:47,099 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:47,113 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e
2024-11-10 23:23:47,123 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e
2024-11-10 23:23:47,133 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/ee32b75d-546b-4554-a78b-22abc69d5c38
2024-11-10 23:23:47,140 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 23:23:47,141 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:47,154 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e
2024-11-10 23:23:47,174 - INFO - Verified VN network id 8 for VN 7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:47,174 - INFO - Verifications in API Server for VN ctest-vn-10714447 passed
2024-11-10 23:23:47,174 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:47,190 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e
2024-11-10 23:23:47,203 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e
2024-11-10 23:23:47,216 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/ee32b75d-546b-4554-a78b-22abc69d5c38
2024-11-10 23:23:47,232 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00147455', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8996473505747453862', 'uuid-lslong': '12653835276782226851'}, 'enable': 'true', 'created': '2024-11-10T23:23:43', 'last-modified': '2024-11-10T23:23:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.048177'}
2024-11-10 23:23:47,242 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 23:23:47,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10714447 passed
2024-11-10 23:23:47,243 - DEBUG - ====Verifying policy data for ctest-vn-10714447 in API_Server ======
2024-11-10 23:23:47,243 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-10 23:23:47,254 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff
2024-11-10 23:23:47,280 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f
2024-11-10 23:23:47,413 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3
2024-11-10 23:23:47,446 - DEBUG - ==>Verifying data for policy with id: f03625bc-8a70-45d0-bcd1-d085aae9e79a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160']
2024-11-10 23:23:47,446 - INFO - VN ctest-vn-10714447 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 23:23:47,446 - DEBUG - Verifying the vn in opserver
2024-11-10 23:23:47,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447 virtual network link through opserver 10.0.0.17
2024-11-10 23:23:47,446 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-10 23:23:47,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447?flat'}
2024-11-10 23:23:47,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447 is found in opserver
2024-11-10 23:23:47,490 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 23:23:47,498 - DEBUG - VRF ids for VN ctest-vn-10714447: {}
2024-11-10 23:23:47,585 - DEBUG - Services list from nova: [