2024-11-13 11:52:37,984 - INFO - Domain Default found not creating
2024-11-13 11:52:38,178 - INFO - Project ctest-TestBasicPolicy-10793467 not found, creating it
2024-11-13 11:52:38,675 - INFO - Created Project:ctest-TestBasicPolicy-10793467, ID : 0a44f186-051e-4e06-b6ef-aeea36234199
2024-11-13 11:52:40,261 - INFO - ================================================================================
2024-11-13 11:52:40,261 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-13 11:52:40,261 - 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-13 11:52:40,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.30': '0'}} with
2024-11-13 11:52:40,516 - INFO - Initial checks done. Running the testcase now
2024-11-13 11:52:40,516 - INFO -
2024-11-13 11:52:41,121 - DEBUG - Response for create_network : {'network': {'id': '3363dca9-f182-41e1-967a-ee49a11c0466', 'name': 'ctest-vn-38024860', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-38024860'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:41,280 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec68a154-1951-4d74-9ac7-b870fb33a7b6', 'name': '', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'network_id': '3363dca9-f182-41e1-967a-ee49a11c0466', 'ip_version': 4, 'cidr': '172.64.157.0/26', 'allocation_pools': [{'start': '172.64.157.2', 'end': '172.64.157.62'}], 'gateway_ip': '172.64.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.64.157.2', 'tags': [], 'project_id': '0a44f186051e4e06b6efaeea36234199'}}
2024-11-13 11:52:41,301 - INFO - Created VN ctest-vn-38024860
2024-11-13 11:52:41,357 - DEBUG - VN ctest-vn-38024860 UUID is 3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:41,674 - DEBUG - Response for create_network : {'network': {'id': '16f10b72-fa2a-4c5a-8c88-db6cd4971f5c', 'name': 'ctest-vn-97353051', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-97353051'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:41,863 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe00c645-67c5-41a0-ba07-09acd5403e87', 'name': '', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'network_id': '16f10b72-fa2a-4c5a-8c88-db6cd4971f5c', 'ip_version': 4, 'cidr': '122.203.64.64/26', 'allocation_pools': [{'start': '122.203.64.66', 'end': '122.203.64.126'}], 'gateway_ip': '122.203.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.203.64.66', 'tags': [], 'project_id': '0a44f186051e4e06b6efaeea36234199'}}
2024-11-13 11:52:41,882 - INFO - Created VN ctest-vn-97353051
2024-11-13 11:52:41,941 - DEBUG - VN ctest-vn-97353051 UUID is 16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:42,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860, 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-10793467:ctest-vn-97353051, 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-13 11:52:42,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3363dca9-f182-41e1-967a-ee49a11c0466', 'name': 'ctest-vn-38024860', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec68a154-1951-4d74-9ac7-b870fb33a7b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-38024860'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551']], 'subnet_ipam': [{'subnet_cidr': '172.64.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:42,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16f10b72-fa2a-4c5a-8c88-db6cd4971f5c', 'name': 'ctest-vn-97353051', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe00c645-67c5-41a0-ba07-09acd5403e87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-97353051'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551']], 'subnet_ipam': [{'subnet_cidr': '122.203.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:42,853 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-13 11:52:43,160 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-13 11:52:43,192 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad
2024-11-13 11:52:43,210 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199
2024-11-13 11:52:43,294 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:43,311 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:43,325 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc
2024-11-13 11:52:43,334 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc
2024-11-13 11:52:43,343 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3ec5c680-9ca0-4d28-97b9-0135ca57744e
2024-11-13 11:52:43,352 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 11:52:43,352 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:43,366 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc
2024-11-13 11:52:43,389 - INFO - Verified VN network id 8 for VN 3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:43,389 - INFO - Verifications in API Server for VN ctest-vn-38024860 passed
2024-11-13 11:52:43,389 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:43,404 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc
2024-11-13 11:52:43,414 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc
2024-11-13 11:52:43,423 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3ec5c680-9ca0-4d28-97b9-0135ca57744e
2024-11-13 11:52:43,441 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10793467', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3703045941088109025', 'uuid-lslong': '10843241052850881638'}, 'enable': 'true', 'created': '2024-11-13T11:52:41', 'last-modified': '2024-11-13T11:52:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074387'}
2024-11-13 11:52:43,451 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 11:52:43,451 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38024860 passed
2024-11-13 11:52:43,451 - DEBUG - ====Verifying policy data for ctest-vn-38024860 in API_Server ======
2024-11-13 11:52:43,451 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-13 11:52:43,459 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad
2024-11-13 11:52:43,473 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199
2024-11-13 11:52:43,551 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466
2024-11-13 11:52:43,566 - DEBUG - ==>Verifying data for policy with id: c0496916-b888-4dcb-914a-3c13d03a6d08, fqn: ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551']
2024-11-13 11:52:43,566 - INFO - VN ctest-vn-38024860 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 11:52:43,567 - DEBUG - Verifying the vn in opserver
2024-11-13 11:52:43,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860 virtual network link through opserver 10.0.0.47
2024-11-13 11:52:43,567 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-11-13 11:52:43,872 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-11-13 11:52:43,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860?flat'}
2024-11-13 11:52:43,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860 is found in opserver
2024-11-13 11:52:43,960 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 11:52:43,967 - DEBUG - VRF ids for VN ctest-vn-38024860: {}
2024-11-13 11:52:43,967 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-13 11:52:43,975 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad
2024-11-13 11:52:43,993 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199
2024-11-13 11:52:44,074 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:44,093 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:44,114 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18
2024-11-13 11:52:44,125 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18
2024-11-13 11:52:44,138 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/d9af45be-1102-4f5d-9cf3-e2e95ea5a184
2024-11-13 11:52:44,148 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 11:52:44,148 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:44,162 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18
2024-11-13 11:52:44,189 - INFO - Verified VN network id 9 for VN 16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:44,189 - INFO - Verifications in API Server for VN ctest-vn-97353051 passed
2024-11-13 11:52:44,189 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:44,207 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18
2024-11-13 11:52:44,219 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18
2024-11-13 11:52:44,232 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/d9af45be-1102-4f5d-9cf3-e2e95ea5a184
2024-11-13 11:52:44,253 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10793467', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1653115126672936026', 'uuid-lslong': '10126585022612184924'}, 'enable': 'true', 'created': '2024-11-13T11:52:41', 'last-modified': '2024-11-13T11:52:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.622944'}
2024-11-13 11:52:44,260 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 11:52:44,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97353051 passed
2024-11-13 11:52:44,261 - DEBUG - ====Verifying policy data for ctest-vn-97353051 in API_Server ======
2024-11-13 11:52:44,261 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-13 11:52:44,269 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad
2024-11-13 11:52:44,288 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199
2024-11-13 11:52:44,377 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c
2024-11-13 11:52:44,395 - DEBUG - ==>Verifying data for policy with id: c0496916-b888-4dcb-914a-3c13d03a6d08, fqn: ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551']
2024-11-13 11:52:44,395 - INFO - VN ctest-vn-97353051 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 11:52:44,395 - DEBUG - Verifying the vn in opserver
2024-11-13 11:52:44,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051 virtual network link through opserver 10.0.0.47
2024-11-13 11:52:44,395 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-11-13 11:52:44,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051?flat'}
2024-11-13 11:52:44,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051 is found in opserver
2024-11-13 11:52:44,420 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 11:52:44,427 - DEBUG - VRF ids for VN ctest-vn-97353051: {}
2024-11-13 11:52:44,488 - DEBUG - Services list from nova: [