2025-01-08 21:48:05,285 - INFO - Domain Default found not creating
2025-01-08 21:48:05,435 - INFO - Project ctest-TestBasicPolicy-98652421 not found, creating it
2025-01-08 21:48:05,923 - INFO - Created Project:ctest-TestBasicPolicy-98652421, ID : f18874e5-fbae-450d-8257-8d81089b0258
2025-01-08 21:48:07,444 - INFO - ================================================================================
2025-01-08 21:48:07,444 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 21:48:07,444 - 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
2025-01-08 21:48:07,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.11': '0'}} with
2025-01-08 21:48:07,708 - INFO - Initial checks done. Running the testcase now
2025-01-08 21:48:07,708 - INFO -
2025-01-08 21:48:08,279 - DEBUG - Response for create_network : {'network': {'id': '0824a8a5-5eee-4cb2-ba9f-d23193b82708', 'name': 'ctest-vn-33058990', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-33058990'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 21:48:08,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae127e1e-242b-4016-87d4-25e549aac122', 'name': '', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'network_id': '0824a8a5-5eee-4cb2-ba9f-d23193b82708', 'ip_version': 4, 'cidr': '201.121.136.192/26', 'allocation_pools': [{'start': '201.121.136.194', 'end': '201.121.136.254'}], 'gateway_ip': '201.121.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.121.136.194', 'tags': [], 'project_id': 'f18874e5fbae450d82578d81089b0258'}}
2025-01-08 21:48:08,477 - INFO - Created VN ctest-vn-33058990
2025-01-08 21:48:08,533 - DEBUG - VN ctest-vn-33058990 UUID is 0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:08,840 - DEBUG - Response for create_network : {'network': {'id': '9b918cb4-84fe-41e4-add7-d8ca40e305f7', 'name': 'ctest-vn-16786328', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-16786328'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 21:48:09,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '38b00e1e-7ec2-4187-abc0-94904813c24b', 'name': '', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'network_id': '9b918cb4-84fe-41e4-add7-d8ca40e305f7', 'ip_version': 4, 'cidr': '177.78.39.192/26', 'allocation_pools': [{'start': '177.78.39.194', 'end': '177.78.39.254'}], 'gateway_ip': '177.78.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.78.39.194', 'tags': [], 'project_id': 'f18874e5fbae450d82578d81089b0258'}}
2025-01-08 21:48:09,052 - INFO - Created VN ctest-vn-16786328
2025-01-08 21:48:09,105 - DEBUG - VN ctest-vn-16786328 UUID is 9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:09,222 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990, 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-98652421:ctest-vn-16786328, 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]
2025-01-08 21:48:09,536 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0824a8a5-5eee-4cb2-ba9f-d23193b82708', 'name': 'ctest-vn-33058990', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae127e1e-242b-4016-87d4-25e549aac122'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-33058990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712']], 'subnet_ipam': [{'subnet_cidr': '201.121.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 21:48:09,776 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b918cb4-84fe-41e4-add7-d8ca40e305f7', 'name': 'ctest-vn-16786328', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38b00e1e-7ec2-4187-abc0-94904813c24b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-16786328'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712']], 'subnet_ipam': [{'subnet_cidr': '177.78.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 21:48:09,941 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-08 21:48:10,250 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-08 21:48:10,288 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b
2025-01-08 21:48:10,304 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258
2025-01-08 21:48:10,387 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:10,402 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:10,415 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2
2025-01-08 21:48:10,424 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2
2025-01-08 21:48:10,433 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a795bead-3ead-48f3-b264-5441d8c4b814
2025-01-08 21:48:10,441 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 21:48:10,441 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:10,452 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2
2025-01-08 21:48:10,469 - INFO - Verified VN network id 8 for VN 0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:10,469 - INFO - Verifications in API Server for VN ctest-vn-33058990 passed
2025-01-08 21:48:10,470 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:10,482 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2
2025-01-08 21:48:10,490 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2
2025-01-08 21:48:10,498 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a795bead-3ead-48f3-b264-5441d8c4b814
2025-01-08 21:48:10,511 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98652421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '586779279680752818', 'uuid-lslong': '13447698122725140232'}, 'enable': 'true', 'created': '2025-01-08T21:48:08', 'last-modified': '2025-01-08T21:48:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000656'}
2025-01-08 21:48:10,518 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 21:48:10,518 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33058990 passed
2025-01-08 21:48:10,518 - DEBUG - ====Verifying policy data for ctest-vn-33058990 in API_Server ======
2025-01-08 21:48:10,518 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-08 21:48:10,524 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b
2025-01-08 21:48:10,538 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258
2025-01-08 21:48:10,612 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708
2025-01-08 21:48:10,623 - DEBUG - ==>Verifying data for policy with id: 54253c7b-adc6-4232-8325-3b7b64e0c680, fqn: ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712']
2025-01-08 21:48:10,623 - INFO - VN ctest-vn-33058990 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 21:48:10,623 - DEBUG - Verifying the vn in opserver
2025-01-08 21:48:10,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990 virtual network link through opserver 10.0.0.27
2025-01-08 21:48:10,623 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-08 21:48:10,925 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-08 21:48:10,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990?flat'}
2025-01-08 21:48:10,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990 is found in opserver
2025-01-08 21:48:10,997 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 21:48:11,002 - DEBUG - VRF ids for VN ctest-vn-33058990: {}
2025-01-08 21:48:11,002 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-08 21:48:11,009 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b
2025-01-08 21:48:11,022 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258
2025-01-08 21:48:11,098 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:11,114 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:11,127 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07
2025-01-08 21:48:11,136 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07
2025-01-08 21:48:11,144 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f959343f-d535-424a-8ffb-b9cd10b025a5
2025-01-08 21:48:11,152 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 21:48:11,152 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:11,162 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07
2025-01-08 21:48:11,179 - INFO - Verified VN network id 9 for VN 9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:11,179 - INFO - Verifications in API Server for VN ctest-vn-16786328 passed
2025-01-08 21:48:11,179 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:11,193 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07
2025-01-08 21:48:11,201 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07
2025-01-08 21:48:11,210 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f959343f-d535-424a-8ffb-b9cd10b025a5
2025-01-08 21:48:11,225 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98652421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11209895654455132644', 'uuid-lslong': '12526719251737937399'}, 'enable': 'true', 'created': '2025-01-08T21:48:08', 'last-modified': '2025-01-08T21:48:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469350'}
2025-01-08 21:48:11,233 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 21:48:11,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16786328 passed
2025-01-08 21:48:11,234 - DEBUG - ====Verifying policy data for ctest-vn-16786328 in API_Server ======
2025-01-08 21:48:11,234 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-08 21:48:11,240 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b
2025-01-08 21:48:11,251 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258
2025-01-08 21:48:11,331 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7
2025-01-08 21:48:11,342 - DEBUG - ==>Verifying data for policy with id: 54253c7b-adc6-4232-8325-3b7b64e0c680, fqn: ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712']
2025-01-08 21:48:11,342 - INFO - VN ctest-vn-16786328 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 21:48:11,343 - DEBUG - Verifying the vn in opserver
2025-01-08 21:48:11,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328 virtual network link through opserver 10.0.0.27
2025-01-08 21:48:11,343 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-08 21:48:11,354 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328?flat'}
2025-01-08 21:48:11,354 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328 is found in opserver
2025-01-08 21:48:11,368 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 21:48:11,375 - DEBUG - VRF ids for VN ctest-vn-16786328: {}
2025-01-08 21:48:11,439 - DEBUG - Services list from nova: [