2025-03-25 14:57:43,250 - INFO - Domain Default found not creating
2025-03-25 14:57:43,435 - INFO - Project ctest-TestBasicPolicy-90740059 not found, creating it
2025-03-25 14:57:43,934 - INFO - Created Project:ctest-TestBasicPolicy-90740059, ID : 67f9ed05-edc0-4a96-9c60-53dcb6652470
2025-03-25 14:57:45,608 - INFO - ================================================================================
2025-03-25 14:57:45,608 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-25 14:57:45,609 - 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-03-25 14:57:45,863 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.13': '0'}} with
2025-03-25 14:57:45,863 - INFO - Initial checks done. Running the testcase now
2025-03-25 14:57:45,863 - INFO -
2025-03-25 14:57:46,491 - DEBUG - Response for create_network : {'network': {'id': '029c2cb3-f3f5-4d7b-bff2-48913e79155d', 'name': 'ctest-vn-19699442', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-19699442'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 14:57:46,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b32818e-6ede-4910-99fc-cf26bd1860e4', 'name': '', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'network_id': '029c2cb3-f3f5-4d7b-bff2-48913e79155d', 'ip_version': 4, 'cidr': '109.52.65.192/26', 'allocation_pools': [{'start': '109.52.65.194', 'end': '109.52.65.254'}], 'gateway_ip': '109.52.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.52.65.194', 'tags': [], 'project_id': '67f9ed05edc04a969c6053dcb6652470'}}
2025-03-25 14:57:46,759 - INFO - Created VN ctest-vn-19699442
2025-03-25 14:57:46,816 - DEBUG - VN ctest-vn-19699442 UUID is 029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:47,151 - DEBUG - Response for create_network : {'network': {'id': '377877b8-4881-44cc-9dc4-b1d0db326272', 'name': 'ctest-vn-54221948', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-54221948'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 14:57:47,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ad1878d-8a17-490a-8812-f6331eb0868b', 'name': '', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'network_id': '377877b8-4881-44cc-9dc4-b1d0db326272', 'ip_version': 4, 'cidr': '72.67.72.192/26', 'allocation_pools': [{'start': '72.67.72.194', 'end': '72.67.72.254'}], 'gateway_ip': '72.67.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.67.72.194', 'tags': [], 'project_id': '67f9ed05edc04a969c6053dcb6652470'}}
2025-03-25 14:57:47,397 - INFO - Created VN ctest-vn-54221948
2025-03-25 14:57:47,456 - DEBUG - VN ctest-vn-54221948 UUID is 377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:47,585 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442, 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-90740059:ctest-vn-54221948, 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-03-25 14:57:47,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '029c2cb3-f3f5-4d7b-bff2-48913e79155d', 'name': 'ctest-vn-19699442', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b32818e-6ede-4910-99fc-cf26bd1860e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-19699442'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807']], 'subnet_ipam': [{'subnet_cidr': '109.52.65.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 14:57:48,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '377877b8-4881-44cc-9dc4-b1d0db326272', 'name': 'ctest-vn-54221948', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ad1878d-8a17-490a-8812-f6331eb0868b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-54221948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807']], 'subnet_ipam': [{'subnet_cidr': '72.67.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 14:57:48,360 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-25 14:57:48,705 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-25 14:57:48,739 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27
2025-03-25 14:57:48,756 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470
2025-03-25 14:57:48,845 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:48,863 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:48,876 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad
2025-03-25 14:57:48,885 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad
2025-03-25 14:57:48,894 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/58db7371-5ec5-458c-9f23-72c65832b505
2025-03-25 14:57:48,902 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 14:57:48,902 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:48,914 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad
2025-03-25 14:57:48,933 - INFO - Verified VN network id 7 for VN 029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:48,933 - INFO - Verifications in API Server for VN ctest-vn-19699442 passed
2025-03-25 14:57:48,933 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:48,946 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad
2025-03-25 14:57:48,955 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad
2025-03-25 14:57:48,964 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/58db7371-5ec5-458c-9f23-72c65832b505
2025-03-25 14:57:48,981 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90740059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '188074435846425979', 'uuid-lslong': '13831197194263795037'}, 'enable': 'true', 'created': '2025-03-25T14:57:46', 'last-modified': '2025-03-25T14:57:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.101973'}
2025-03-25 14:57:48,989 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 14:57:48,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19699442 passed
2025-03-25 14:57:48,989 - DEBUG - ====Verifying policy data for ctest-vn-19699442 in API_Server ======
2025-03-25 14:57:48,989 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-25 14:57:48,997 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27
2025-03-25 14:57:49,011 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470
2025-03-25 14:57:49,088 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d
2025-03-25 14:57:49,100 - DEBUG - ==>Verifying data for policy with id: 3e3e5719-eee9-46f9-9ef1-37ff11b796d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807']
2025-03-25 14:57:49,100 - INFO - VN ctest-vn-19699442 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 14:57:49,100 - DEBUG - Verifying the vn in opserver
2025-03-25 14:57:49,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442 virtual network link through opserver 10.0.0.33
2025-03-25 14:57:49,100 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-25 14:57:49,441 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-25 14:57:49,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442?flat'}
2025-03-25 14:57:49,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442 is found in opserver
2025-03-25 14:57:49,521 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 14:57:49,528 - DEBUG - VRF ids for VN ctest-vn-19699442: {}
2025-03-25 14:57:49,528 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-25 14:57:49,536 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27
2025-03-25 14:57:49,551 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470
2025-03-25 14:57:49,634 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:49,652 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:49,666 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d
2025-03-25 14:57:49,677 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d
2025-03-25 14:57:49,687 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/80adb4d0-ca3b-44f8-bf1c-051bda86d862
2025-03-25 14:57:49,696 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 14:57:49,696 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:49,708 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d
2025-03-25 14:57:49,726 - INFO - Verified VN network id 8 for VN 377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:49,726 - INFO - Verifications in API Server for VN ctest-vn-54221948 passed
2025-03-25 14:57:49,726 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:49,738 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d
2025-03-25 14:57:49,747 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d
2025-03-25 14:57:49,756 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/80adb4d0-ca3b-44f8-bf1c-051bda86d862
2025-03-25 14:57:49,772 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90740059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3997076302665434316', 'uuid-lslong': '11368406869978800754'}, 'enable': 'true', 'created': '2025-03-25T14:57:47', 'last-modified': '2025-03-25T14:57:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.635092'}
2025-03-25 14:57:49,780 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 14:57:49,780 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54221948 passed
2025-03-25 14:57:49,780 - DEBUG - ====Verifying policy data for ctest-vn-54221948 in API_Server ======
2025-03-25 14:57:49,780 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-25 14:57:49,788 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27
2025-03-25 14:57:49,802 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470
2025-03-25 14:57:49,879 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272
2025-03-25 14:57:49,891 - DEBUG - ==>Verifying data for policy with id: 3e3e5719-eee9-46f9-9ef1-37ff11b796d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807']
2025-03-25 14:57:49,891 - INFO - VN ctest-vn-54221948 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 14:57:49,891 - DEBUG - Verifying the vn in opserver
2025-03-25 14:57:49,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948 virtual network link through opserver 10.0.0.33
2025-03-25 14:57:49,892 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-25 14:57:49,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948?flat'}
2025-03-25 14:57:49,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948 is found in opserver
2025-03-25 14:57:49,916 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 14:57:49,922 - DEBUG - VRF ids for VN ctest-vn-54221948: {}
2025-03-25 14:57:49,989 - DEBUG - Services list from nova: [