2024-09-16 02:17:42,849 - INFO - Domain Default found not creating
2024-09-16 02:17:42,994 - INFO - Project ctest-TestBasicPolicy-20916230 not found, creating it
2024-09-16 02:17:43,476 - INFO - Created Project:ctest-TestBasicPolicy-20916230, ID : 876db219-797f-4d06-8b8b-03eb0cd98305
2024-09-16 02:17:44,944 - INFO - ================================================================================
2024-09-16 02:17:44,944 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-16 02:17:44,944 - 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-16 02:17:45,204 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.8': '0'}} with
2024-09-16 02:17:45,204 - INFO - Initial checks done. Running the testcase now
2024-09-16 02:17:45,204 - INFO -
2024-09-16 02:17:45,784 - DEBUG - Response for create_network : {'network': {'id': 'abca78e5-b6d8-4620-9803-2950029f8227', 'name': 'ctest-vn-02489448', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-02489448'], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:17:45,988 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd05ec83-4b44-48c2-8385-0a218a7491b1', 'name': '', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'network_id': 'abca78e5-b6d8-4620-9803-2950029f8227', 'ip_version': 4, 'cidr': '55.35.40.192/26', 'allocation_pools': [{'start': '55.35.40.194', 'end': '55.35.40.254'}], 'gateway_ip': '55.35.40.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.35.40.194', 'tags': [], 'project_id': '876db219797f4d068b8b03eb0cd98305'}}
2024-09-16 02:17:46,009 - INFO - Created VN ctest-vn-02489448
2024-09-16 02:17:46,066 - DEBUG - VN ctest-vn-02489448 UUID is abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:46,367 - DEBUG - Response for create_network : {'network': {'id': 'e497be1c-95bd-4dd4-a2eb-87c38b664b85', 'name': 'ctest-vn-43119918', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-43119918'], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:17:46,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '527064a2-ab98-4a21-a68b-5859eafa27d0', 'name': '', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'network_id': 'e497be1c-95bd-4dd4-a2eb-87c38b664b85', 'ip_version': 4, 'cidr': '14.233.165.128/26', 'allocation_pools': [{'start': '14.233.165.130', 'end': '14.233.165.190'}], 'gateway_ip': '14.233.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.233.165.130', 'tags': [], 'project_id': '876db219797f4d068b8b03eb0cd98305'}}
2024-09-16 02:17:46,554 - INFO - Created VN ctest-vn-43119918
2024-09-16 02:17:46,610 - DEBUG - VN ctest-vn-43119918 UUID is e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:46,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448, 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-20916230:ctest-vn-43119918, 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-16 02:17:47,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abca78e5-b6d8-4620-9803-2950029f8227', 'name': 'ctest-vn-02489448', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd05ec83-4b44-48c2-8385-0a218a7491b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-02489448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478']], 'subnet_ipam': [{'subnet_cidr': '55.35.40.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:17:47,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e497be1c-95bd-4dd4-a2eb-87c38b664b85', 'name': 'ctest-vn-43119918', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['527064a2-ab98-4a21-a68b-5859eafa27d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-43119918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478']], 'subnet_ipam': [{'subnet_cidr': '14.233.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:17:47,462 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-16 02:17:47,759 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-16 02:17:47,788 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61
2024-09-16 02:17:47,803 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305
2024-09-16 02:17:47,885 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:47,900 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:47,914 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf
2024-09-16 02:17:47,922 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf
2024-09-16 02:17:47,931 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/16ae2658-866b-45af-bf52-9189b3c15811
2024-09-16 02:17:47,939 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-16 02:17:47,939 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:47,954 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf
2024-09-16 02:17:47,975 - INFO - Verified VN network id 8 for VN abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:47,975 - INFO - Verifications in API Server for VN ctest-vn-02489448 passed
2024-09-16 02:17:47,975 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:47,990 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf
2024-09-16 02:17:47,999 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf
2024-09-16 02:17:48,007 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/16ae2658-866b-45af-bf52-9189b3c15811
2024-09-16 02:17:48,022 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20916230', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12378839453791700512', 'uuid-lslong': '10953644142313308711'}, 'enable': 'true', 'created': '2024-09-16T02:17:45', 'last-modified': '2024-09-16T02:17:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019489'}
2024-09-16 02:17:48,028 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-16 02:17:48,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02489448 passed
2024-09-16 02:17:48,029 - DEBUG - ====Verifying policy data for ctest-vn-02489448 in API_Server ======
2024-09-16 02:17:48,029 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-16 02:17:48,035 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61
2024-09-16 02:17:48,051 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305
2024-09-16 02:17:48,125 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227
2024-09-16 02:17:48,139 - DEBUG - ==>Verifying data for policy with id: 129fccac-063d-44cb-a09b-40007376d62a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478']
2024-09-16 02:17:48,139 - INFO - VN ctest-vn-02489448 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-16 02:17:48,139 - DEBUG - Verifying the vn in opserver
2024-09-16 02:17:48,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448 virtual network link through opserver 10.0.0.23
2024-09-16 02:17:48,140 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-16 02:17:48,431 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-16 02:17:48,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448?flat'}
2024-09-16 02:17:48,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448 is found in opserver
2024-09-16 02:17:48,501 - DEBUG - Do not have enough data to verify VN in agent
2024-09-16 02:17:48,506 - DEBUG - VRF ids for VN ctest-vn-02489448: {}
2024-09-16 02:17:48,506 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-16 02:17:48,512 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61
2024-09-16 02:17:48,525 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305
2024-09-16 02:17:48,605 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:48,621 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:48,634 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4
2024-09-16 02:17:48,644 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4
2024-09-16 02:17:48,652 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7310a781-0d4b-47e3-b597-4b13bd35b36f
2024-09-16 02:17:48,660 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-16 02:17:48,660 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:48,673 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4
2024-09-16 02:17:48,694 - INFO - Verified VN network id 9 for VN e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:48,694 - INFO - Verifications in API Server for VN ctest-vn-43119918 passed
2024-09-16 02:17:48,694 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:48,709 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4
2024-09-16 02:17:48,717 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4
2024-09-16 02:17:48,725 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7310a781-0d4b-47e3-b597-4b13bd35b36f
2024-09-16 02:17:48,739 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20916230', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16471843192111451604', 'uuid-lslong': '11739626127598439301'}, 'enable': 'true', 'created': '2024-09-16T02:17:46', 'last-modified': '2024-09-16T02:17:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.493500'}
2024-09-16 02:17:48,746 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-16 02:17:48,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43119918 passed
2024-09-16 02:17:48,746 - DEBUG - ====Verifying policy data for ctest-vn-43119918 in API_Server ======
2024-09-16 02:17:48,746 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-16 02:17:48,751 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61
2024-09-16 02:17:48,765 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305
2024-09-16 02:17:48,846 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85
2024-09-16 02:17:48,860 - DEBUG - ==>Verifying data for policy with id: 129fccac-063d-44cb-a09b-40007376d62a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478']
2024-09-16 02:17:48,860 - INFO - VN ctest-vn-43119918 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-16 02:17:48,860 - DEBUG - Verifying the vn in opserver
2024-09-16 02:17:48,860 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918 virtual network link through opserver 10.0.0.23
2024-09-16 02:17:48,860 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-16 02:17:48,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918?flat'}
2024-09-16 02:17:48,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918 is found in opserver
2024-09-16 02:17:48,882 - DEBUG - Do not have enough data to verify VN in agent
2024-09-16 02:17:48,887 - DEBUG - VRF ids for VN ctest-vn-43119918: {}
2024-09-16 02:17:48,939 - DEBUG - Services list from nova: [