2024-11-08 08:55:16,258 - INFO - Domain Default found not creating
2024-11-08 08:55:16,431 - INFO - Project ctest-TestBasicPolicy-60873555 not found, creating it
2024-11-08 08:55:16,920 - INFO - Created Project:ctest-TestBasicPolicy-60873555, ID : c11dcb71-10ba-4ee6-b1eb-cc1cc9f9d1b4
2024-11-08 08:55:18,567 - INFO - ================================================================================
2024-11-08 08:55:18,568 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 08:55:18,568 - 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-08 08:55:18,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.7': '0'}} with
2024-11-08 08:55:18,824 - INFO - Initial checks done. Running the testcase now
2024-11-08 08:55:18,824 - INFO -
2024-11-08 08:55:19,461 - DEBUG - Response for create_network : {'network': {'id': 'ab79646e-4813-4873-9314-be1f8520f04c', 'name': 'ctest-vn-87366713', 'tenant_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'project_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-vn-87366713'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 08:55:19,630 - DEBUG - Response for create_subnet : {'subnet': {'id': '74af83df-0fc6-479d-94a2-c54db4a33556', 'name': '', 'tenant_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'network_id': 'ab79646e-4813-4873-9314-be1f8520f04c', 'ip_version': 4, 'cidr': '209.134.145.0/26', 'allocation_pools': [{'start': '209.134.145.2', 'end': '209.134.145.62'}], 'gateway_ip': '209.134.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.134.145.2', 'tags': [], 'project_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4'}}
2024-11-08 08:55:19,651 - INFO - Created VN ctest-vn-87366713
2024-11-08 08:55:19,713 - DEBUG - VN ctest-vn-87366713 UUID is ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:20,042 - DEBUG - Response for create_network : {'network': {'id': '508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd', 'name': 'ctest-vn-41228476', 'tenant_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'project_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-vn-41228476'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 08:55:20,233 - DEBUG - Response for create_subnet : {'subnet': {'id': '84d997a9-c237-43cf-9cdd-337216636abb', 'name': '', 'tenant_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'network_id': '508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd', 'ip_version': 4, 'cidr': '139.39.241.64/26', 'allocation_pools': [{'start': '139.39.241.66', 'end': '139.39.241.126'}], 'gateway_ip': '139.39.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.39.241.66', 'tags': [], 'project_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4'}}
2024-11-08 08:55:20,256 - INFO - Created VN ctest-vn-41228476
2024-11-08 08:55:20,313 - DEBUG - VN ctest-vn-41228476 UUID is 508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:20,437 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-87366713, 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-60873555:ctest-vn-41228476, 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-08 08:55:20,766 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab79646e-4813-4873-9314-be1f8520f04c', 'name': 'ctest-vn-87366713', 'tenant_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'project_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74af83df-0fc6-479d-94a2-c54db4a33556'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-vn-87366713'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-policy-allow-all-36088937']], 'subnet_ipam': [{'subnet_cidr': '209.134.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 08:55:21,023 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd', 'name': 'ctest-vn-41228476', 'tenant_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'project_id': 'c11dcb7110ba4ee6b1ebcc1cc9f9d1b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84d997a9-c237-43cf-9cdd-337216636abb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-vn-41228476'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-policy-allow-all-36088937']], 'subnet_ipam': [{'subnet_cidr': '139.39.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 08:55:21,177 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-08 08:55:21,528 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-08 08:55:21,560 - DEBUG - Requesting: http://10.0.0.17:8082/domain/58735be2-adb9-4c31-874b-6f54e4f7aded
2024-11-08 08:55:21,577 - DEBUG - Requesting: http://10.0.0.17:8082/project/c11dcb71-10ba-4ee6-b1eb-cc1cc9f9d1b4
2024-11-08 08:55:21,660 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:21,677 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:21,692 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3895a77b-df87-4611-9b8a-4fffeabb7f3f
2024-11-08 08:55:21,702 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3895a77b-df87-4611-9b8a-4fffeabb7f3f
2024-11-08 08:55:21,712 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/bd852f60-f7ca-45fe-a3ab-3bce1508fde6
2024-11-08 08:55:21,722 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 08:55:21,722 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:21,737 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3895a77b-df87-4611-9b8a-4fffeabb7f3f
2024-11-08 08:55:21,760 - INFO - Verified VN network id 8 for VN ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:21,760 - INFO - Verifications in API Server for VN ctest-vn-87366713 passed
2024-11-08 08:55:21,760 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:21,775 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3895a77b-df87-4611-9b8a-4fffeabb7f3f
2024-11-08 08:55:21,785 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3895a77b-df87-4611-9b8a-4fffeabb7f3f
2024-11-08 08:55:21,797 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/bd852f60-f7ca-45fe-a3ab-3bce1508fde6
2024-11-08 08:55:21,812 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-87366713', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60873555', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12356017477486069875', 'uuid-lslong': '10598304865696411724'}, 'enable': 'true', 'created': '2024-11-08T08:55:19', 'last-modified': '2024-11-08T08:55:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072838'}
2024-11-08 08:55:21,819 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 08:55:21,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87366713 passed
2024-11-08 08:55:21,820 - DEBUG - ====Verifying policy data for ctest-vn-87366713 in API_Server ======
2024-11-08 08:55:21,820 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-08 08:55:21,827 - DEBUG - Requesting: http://10.0.0.17:8082/domain/58735be2-adb9-4c31-874b-6f54e4f7aded
2024-11-08 08:55:21,842 - DEBUG - Requesting: http://10.0.0.17:8082/project/c11dcb71-10ba-4ee6-b1eb-cc1cc9f9d1b4
2024-11-08 08:55:21,934 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab79646e-4813-4873-9314-be1f8520f04c
2024-11-08 08:55:21,949 - DEBUG - ==>Verifying data for policy with id: 164cce84-1b8b-446e-9d1f-a1d121521eb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-policy-allow-all-36088937']
2024-11-08 08:55:21,949 - INFO - VN ctest-vn-87366713 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 08:55:21,949 - DEBUG - Verifying the vn in opserver
2024-11-08 08:55:21,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-87366713 virtual network link through opserver 10.0.0.17
2024-11-08 08:55:21,950 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-08 08:55:22,287 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-08 08:55:22,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-87366713', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-87366713?flat'}
2024-11-08 08:55:22,351 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-87366713 is found in opserver
2024-11-08 08:55:22,364 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 08:55:22,370 - DEBUG - VRF ids for VN ctest-vn-87366713: {}
2024-11-08 08:55:22,370 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-08 08:55:22,377 - DEBUG - Requesting: http://10.0.0.17:8082/domain/58735be2-adb9-4c31-874b-6f54e4f7aded
2024-11-08 08:55:22,390 - DEBUG - Requesting: http://10.0.0.17:8082/project/c11dcb71-10ba-4ee6-b1eb-cc1cc9f9d1b4
2024-11-08 08:55:22,477 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:22,494 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:22,508 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/c5cccc34-b559-464b-9bfc-dc09e6b5e946
2024-11-08 08:55:22,517 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/c5cccc34-b559-464b-9bfc-dc09e6b5e946
2024-11-08 08:55:22,525 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2be34932-2dfb-42e8-9b55-e67516ead249
2024-11-08 08:55:22,532 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 08:55:22,532 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:22,545 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/c5cccc34-b559-464b-9bfc-dc09e6b5e946
2024-11-08 08:55:22,564 - INFO - Verified VN network id 9 for VN 508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:22,564 - INFO - Verifications in API Server for VN ctest-vn-41228476 passed
2024-11-08 08:55:22,564 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:22,579 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/c5cccc34-b559-464b-9bfc-dc09e6b5e946
2024-11-08 08:55:22,588 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/c5cccc34-b559-464b-9bfc-dc09e6b5e946
2024-11-08 08:55:22,597 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2be34932-2dfb-42e8-9b55-e67516ead249
2024-11-08 08:55:22,610 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-41228476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60873555', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5805076991293279858', 'uuid-lslong': '13809700707136555261'}, 'enable': 'true', 'created': '2024-11-08T08:55:20', 'last-modified': '2024-11-08T08:55:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616368'}
2024-11-08 08:55:22,617 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 08:55:22,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41228476 passed
2024-11-08 08:55:22,617 - DEBUG - ====Verifying policy data for ctest-vn-41228476 in API_Server ======
2024-11-08 08:55:22,617 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-08 08:55:22,623 - DEBUG - Requesting: http://10.0.0.17:8082/domain/58735be2-adb9-4c31-874b-6f54e4f7aded
2024-11-08 08:55:22,636 - DEBUG - Requesting: http://10.0.0.17:8082/project/c11dcb71-10ba-4ee6-b1eb-cc1cc9f9d1b4
2024-11-08 08:55:22,717 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/508fc6c4-57d4-4e72-bfa5-e9a04f55c8fd
2024-11-08 08:55:22,733 - DEBUG - ==>Verifying data for policy with id: 164cce84-1b8b-446e-9d1f-a1d121521eb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-60873555', 'ctest-policy-allow-all-36088937']
2024-11-08 08:55:22,733 - INFO - VN ctest-vn-41228476 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 08:55:22,733 - DEBUG - Verifying the vn in opserver
2024-11-08 08:55:22,733 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-41228476 virtual network link through opserver 10.0.0.17
2024-11-08 08:55:22,733 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-08 08:55:22,744 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-41228476', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-41228476?flat'}
2024-11-08 08:55:22,744 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60873555:ctest-vn-41228476 is found in opserver
2024-11-08 08:55:22,756 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 08:55:22,762 - DEBUG - VRF ids for VN ctest-vn-41228476: {}
2024-11-08 08:55:22,819 - DEBUG - Services list from nova: [