2024-09-17 09:43:05,973 - INFO - Domain Default found not creating
2024-09-17 09:43:06,161 - INFO - Project ctest-TestBasicPolicy-11687102 not found, creating it
2024-09-17 09:43:06,687 - INFO - Created Project:ctest-TestBasicPolicy-11687102, ID : 94507435-5125-4317-8f02-1917e622b985
2024-09-17 09:43:08,439 - INFO - ================================================================================
2024-09-17 09:43:08,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 09:43:08,440 - 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-09-17 09:43:08,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.20': '0'}} with
2024-09-17 09:43:08,696 - INFO - Initial checks done. Running the testcase now
2024-09-17 09:43:08,696 - INFO -
2024-09-17 09:43:09,344 - DEBUG - Response for create_network : {'network': {'id': 'a9ee37e2-90c5-4b96-b3af-82287073be4a', 'name': 'ctest-vn-92035634', 'tenant_id': '94507435512543178f021917e622b985', 'project_id': '94507435512543178f021917e622b985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-vn-92035634'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:43:09,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '218ba60b-1738-4be1-a986-9175c645f176', 'name': '', 'tenant_id': '94507435512543178f021917e622b985', 'network_id': 'a9ee37e2-90c5-4b96-b3af-82287073be4a', 'ip_version': 4, 'cidr': '155.252.140.128/26', 'allocation_pools': [{'start': '155.252.140.130', 'end': '155.252.140.190'}], 'gateway_ip': '155.252.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.252.140.130', 'tags': [], 'project_id': '94507435512543178f021917e622b985'}}
2024-09-17 09:43:09,581 - INFO - Created VN ctest-vn-92035634
2024-09-17 09:43:09,641 - DEBUG - VN ctest-vn-92035634 UUID is a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:09,994 - DEBUG - Response for create_network : {'network': {'id': '0eed5375-181f-48f0-83f0-814496d3ecd5', 'name': 'ctest-vn-73463671', 'tenant_id': '94507435512543178f021917e622b985', 'project_id': '94507435512543178f021917e622b985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-vn-73463671'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:43:10,237 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b55dd42-2a59-48fa-8e22-e8b071cb25d9', 'name': '', 'tenant_id': '94507435512543178f021917e622b985', 'network_id': '0eed5375-181f-48f0-83f0-814496d3ecd5', 'ip_version': 4, 'cidr': '9.179.33.192/26', 'allocation_pools': [{'start': '9.179.33.194', 'end': '9.179.33.254'}], 'gateway_ip': '9.179.33.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.179.33.194', 'tags': [], 'project_id': '94507435512543178f021917e622b985'}}
2024-09-17 09:43:10,259 - INFO - Created VN ctest-vn-73463671
2024-09-17 09:43:10,317 - DEBUG - VN ctest-vn-73463671 UUID is 0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:10,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-92035634, 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-11687102:ctest-vn-73463671, 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-09-17 09:43:10,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9ee37e2-90c5-4b96-b3af-82287073be4a', 'name': 'ctest-vn-92035634', 'tenant_id': '94507435512543178f021917e622b985', 'project_id': '94507435512543178f021917e622b985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['218ba60b-1738-4be1-a986-9175c645f176'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-vn-92035634'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-policy-allow-all-47208179']], 'subnet_ipam': [{'subnet_cidr': '155.252.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:43:11,091 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0eed5375-181f-48f0-83f0-814496d3ecd5', 'name': 'ctest-vn-73463671', 'tenant_id': '94507435512543178f021917e622b985', 'project_id': '94507435512543178f021917e622b985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b55dd42-2a59-48fa-8e22-e8b071cb25d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-vn-73463671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-policy-allow-all-47208179']], 'subnet_ipam': [{'subnet_cidr': '9.179.33.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:43:11,281 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2024-09-17 09:43:11,622 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2024-09-17 09:43:11,661 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8c725f2-8cab-46f6-a25b-d47fe88fcda8
2024-09-17 09:43:11,677 - DEBUG - Requesting: http://10.0.0.50:8082/project/94507435-5125-4317-8f02-1917e622b985
2024-09-17 09:43:11,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:11,790 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:11,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5bcb77-c33f-47ae-8c4f-8b66ee114933
2024-09-17 09:43:11,821 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5bcb77-c33f-47ae-8c4f-8b66ee114933
2024-09-17 09:43:11,834 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/65989302-47b3-44a6-b49a-a5deef5f53d7
2024-09-17 09:43:11,844 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 09:43:11,844 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:11,861 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5bcb77-c33f-47ae-8c4f-8b66ee114933
2024-09-17 09:43:11,885 - INFO - Verified VN network id 8 for VN a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:11,885 - INFO - Verifications in API Server for VN ctest-vn-92035634 passed
2024-09-17 09:43:11,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:11,902 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5bcb77-c33f-47ae-8c4f-8b66ee114933
2024-09-17 09:43:11,913 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5bcb77-c33f-47ae-8c4f-8b66ee114933
2024-09-17 09:43:11,923 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/65989302-47b3-44a6-b49a-a5deef5f53d7
2024-09-17 09:43:11,945 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-92035634', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11687102', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12244785883097942934', 'uuid-lslong': '12947710563910401610'}, 'enable': 'true', 'created': '2024-09-17T09:43:09', 'last-modified': '2024-09-17T09:43:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.163573'}
2024-09-17 09:43:11,953 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 09:43:11,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92035634 passed
2024-09-17 09:43:11,954 - DEBUG - ====Verifying policy data for ctest-vn-92035634 in API_Server ======
2024-09-17 09:43:11,954 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2024-09-17 09:43:11,961 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8c725f2-8cab-46f6-a25b-d47fe88fcda8
2024-09-17 09:43:11,977 - DEBUG - Requesting: http://10.0.0.50:8082/project/94507435-5125-4317-8f02-1917e622b985
2024-09-17 09:43:12,067 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a9ee37e2-90c5-4b96-b3af-82287073be4a
2024-09-17 09:43:12,085 - DEBUG - ==>Verifying data for policy with id: 05f957b7-0689-4f94-928d-5b851f0aa246, fqn: ['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-policy-allow-all-47208179']
2024-09-17 09:43:12,085 - INFO - VN ctest-vn-92035634 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 09:43:12,085 - DEBUG - Verifying the vn in opserver
2024-09-17 09:43:12,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-92035634 virtual network link through opserver 10.0.0.50
2024-09-17 09:43:12,086 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2024-09-17 09:43:12,427 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2024-09-17 09:43:12,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-92035634', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-92035634?flat'}
2024-09-17 09:43:12,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-92035634 is found in opserver
2024-09-17 09:43:12,512 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 09:43:12,519 - DEBUG - VRF ids for VN ctest-vn-92035634: {}
2024-09-17 09:43:12,519 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2024-09-17 09:43:12,526 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8c725f2-8cab-46f6-a25b-d47fe88fcda8
2024-09-17 09:43:12,544 - DEBUG - Requesting: http://10.0.0.50:8082/project/94507435-5125-4317-8f02-1917e622b985
2024-09-17 09:43:12,635 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:12,654 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:12,672 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4289f03-1c6d-4dad-851b-0aee4087ecc2
2024-09-17 09:43:12,684 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4289f03-1c6d-4dad-851b-0aee4087ecc2
2024-09-17 09:43:12,695 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7ac9872-775e-4f24-a406-a8b38dbb3fdc
2024-09-17 09:43:12,706 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 09:43:12,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:12,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4289f03-1c6d-4dad-851b-0aee4087ecc2
2024-09-17 09:43:12,749 - INFO - Verified VN network id 9 for VN 0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:12,749 - INFO - Verifications in API Server for VN ctest-vn-73463671 passed
2024-09-17 09:43:12,749 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:12,765 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4289f03-1c6d-4dad-851b-0aee4087ecc2
2024-09-17 09:43:12,775 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4289f03-1c6d-4dad-851b-0aee4087ecc2
2024-09-17 09:43:12,785 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7ac9872-775e-4f24-a406-a8b38dbb3fdc
2024-09-17 09:43:12,803 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-73463671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11687102', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1075607648392399088', 'uuid-lslong': '9507240944967347413'}, 'enable': 'true', 'created': '2024-09-17T09:43:09', 'last-modified': '2024-09-17T09:43:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.740472'}
2024-09-17 09:43:12,811 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 09:43:12,811 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73463671 passed
2024-09-17 09:43:12,812 - DEBUG - ====Verifying policy data for ctest-vn-73463671 in API_Server ======
2024-09-17 09:43:12,812 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2024-09-17 09:43:12,828 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8c725f2-8cab-46f6-a25b-d47fe88fcda8
2024-09-17 09:43:12,844 - DEBUG - Requesting: http://10.0.0.50:8082/project/94507435-5125-4317-8f02-1917e622b985
2024-09-17 09:43:12,935 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0eed5375-181f-48f0-83f0-814496d3ecd5
2024-09-17 09:43:12,953 - DEBUG - ==>Verifying data for policy with id: 05f957b7-0689-4f94-928d-5b851f0aa246, fqn: ['default-domain', 'ctest-TestBasicPolicy-11687102', 'ctest-policy-allow-all-47208179']
2024-09-17 09:43:12,953 - INFO - VN ctest-vn-73463671 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 09:43:12,953 - DEBUG - Verifying the vn in opserver
2024-09-17 09:43:12,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-73463671 virtual network link through opserver 10.0.0.50
2024-09-17 09:43:12,953 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2024-09-17 09:43:12,967 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-73463671', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-73463671?flat'}
2024-09-17 09:43:12,967 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11687102:ctest-vn-73463671 is found in opserver
2024-09-17 09:43:12,983 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 09:43:12,992 - DEBUG - VRF ids for VN ctest-vn-73463671: {}
2024-09-17 09:43:13,067 - DEBUG - Services list from nova: [