2024-09-11 06:59:32,283 - INFO - Domain Default found not creating
2024-09-11 06:59:32,481 - INFO - Project ctest-TestBasicPolicy-00084788 not found, creating it
2024-09-11 06:59:32,956 - INFO - Created Project:ctest-TestBasicPolicy-00084788, ID : 5f72a098-8452-461f-a2cd-05f22aa2155d
2024-09-11 06:59:34,713 - INFO - ================================================================================
2024-09-11 06:59:34,713 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 06:59:34,713 - 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-11 06:59:34,974 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.21': '0'}} with
2024-09-11 06:59:34,975 - INFO - Initial checks done. Running the testcase now
2024-09-11 06:59:34,975 - INFO -
2024-09-11 06:59:35,606 - DEBUG - Response for create_network : {'network': {'id': '9981182b-3b8c-4763-ae01-e0d0af6992e8', 'name': 'ctest-vn-31484616', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-31484616'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:59:35,814 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd038bdd3-4df4-4660-a586-e2d9611e0532', 'name': '', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'network_id': '9981182b-3b8c-4763-ae01-e0d0af6992e8', 'ip_version': 4, 'cidr': '197.174.117.128/26', 'allocation_pools': [{'start': '197.174.117.130', 'end': '197.174.117.190'}], 'gateway_ip': '197.174.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.174.117.130', 'tags': [], 'project_id': '5f72a0988452461fa2cd05f22aa2155d'}}
2024-09-11 06:59:35,836 - INFO - Created VN ctest-vn-31484616
2024-09-11 06:59:35,888 - DEBUG - VN ctest-vn-31484616 UUID is 9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:36,221 - DEBUG - Response for create_network : {'network': {'id': '81486127-0f37-48c8-a714-bb72646da9a5', 'name': 'ctest-vn-24343778', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-24343778'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:59:36,391 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4994161-33fc-4e0d-ab60-f22c8352cf0f', 'name': '', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'network_id': '81486127-0f37-48c8-a714-bb72646da9a5', 'ip_version': 4, 'cidr': '204.157.48.192/26', 'allocation_pools': [{'start': '204.157.48.194', 'end': '204.157.48.254'}], 'gateway_ip': '204.157.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.157.48.194', 'tags': [], 'project_id': '5f72a0988452461fa2cd05f22aa2155d'}}
2024-09-11 06:59:36,415 - INFO - Created VN ctest-vn-24343778
2024-09-11 06:59:36,468 - DEBUG - VN ctest-vn-24343778 UUID is 81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:36,596 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616, 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-00084788:ctest-vn-24343778, 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-11 06:59:36,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9981182b-3b8c-4763-ae01-e0d0af6992e8', 'name': 'ctest-vn-31484616', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d038bdd3-4df4-4660-a586-e2d9611e0532'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-31484616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245']], 'subnet_ipam': [{'subnet_cidr': '197.174.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:59:37,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81486127-0f37-48c8-a714-bb72646da9a5', 'name': 'ctest-vn-24343778', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4994161-33fc-4e0d-ab60-f22c8352cf0f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-24343778'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245']], 'subnet_ipam': [{'subnet_cidr': '204.157.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:59:37,376 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-09-11 06:59:37,721 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-09-11 06:59:37,765 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188
2024-09-11 06:59:37,783 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d
2024-09-11 06:59:37,894 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:37,942 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:37,963 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49
2024-09-11 06:59:37,978 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49
2024-09-11 06:59:37,991 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2d339aaa-6968-4794-8611-bccab2a70945
2024-09-11 06:59:38,012 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 06:59:38,012 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:38,038 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49
2024-09-11 06:59:38,052 - INFO - Verified VN network id 9 for VN 9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:38,052 - INFO - Verifications in API Server for VN ctest-vn-31484616 passed
2024-09-11 06:59:38,052 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:38,062 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49
2024-09-11 06:59:38,074 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49
2024-09-11 06:59:38,085 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2d339aaa-6968-4794-8611-bccab2a70945
2024-09-11 06:59:38,103 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084788', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11061148733760358243', 'uuid-lslong': '12538550024476922600'}, 'enable': 'true', 'created': '2024-09-11T06:59:35', 'last-modified': '2024-09-11T06:59:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.206029'}
2024-09-11 06:59:38,111 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 06:59:38,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31484616 passed
2024-09-11 06:59:38,112 - DEBUG - ====Verifying policy data for ctest-vn-31484616 in API_Server ======
2024-09-11 06:59:38,112 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-09-11 06:59:38,131 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188
2024-09-11 06:59:38,148 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d
2024-09-11 06:59:38,262 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8
2024-09-11 06:59:38,274 - DEBUG - ==>Verifying data for policy with id: 494f6dc7-fe0f-46e5-b369-9f6a47460f88, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245']
2024-09-11 06:59:38,274 - INFO - VN ctest-vn-31484616 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 06:59:38,274 - DEBUG - Verifying the vn in opserver
2024-09-11 06:59:38,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616 virtual network link through opserver 10.0.0.12
2024-09-11 06:59:38,274 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-09-11 06:59:38,659 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-09-11 06:59:38,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616?flat'}
2024-09-11 06:59:38,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616 is found in opserver
2024-09-11 06:59:38,744 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 06:59:38,751 - DEBUG - VRF ids for VN ctest-vn-31484616: {}
2024-09-11 06:59:38,751 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-09-11 06:59:38,758 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188
2024-09-11 06:59:38,773 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d
2024-09-11 06:59:38,844 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:38,856 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:38,865 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982
2024-09-11 06:59:38,873 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982
2024-09-11 06:59:38,881 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/0c284a27-fd1a-4db6-98a3-7174d5d268f7
2024-09-11 06:59:38,888 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 06:59:38,888 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:38,898 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982
2024-09-11 06:59:38,912 - INFO - Verified VN network id 10 for VN 81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:38,912 - INFO - Verifications in API Server for VN ctest-vn-24343778 passed
2024-09-11 06:59:38,912 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:38,921 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982
2024-09-11 06:59:38,929 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982
2024-09-11 06:59:38,936 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/0c284a27-fd1a-4db6-98a3-7174d5d268f7
2024-09-11 06:59:38,951 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084788', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9315802649602771144', 'uuid-lslong': '12039453803853752741'}, 'enable': 'true', 'created': '2024-09-11T06:59:36', 'last-modified': '2024-09-11T06:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.794316'}
2024-09-11 06:59:38,958 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 06:59:38,959 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24343778 passed
2024-09-11 06:59:38,959 - DEBUG - ====Verifying policy data for ctest-vn-24343778 in API_Server ======
2024-09-11 06:59:38,959 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-09-11 06:59:38,965 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188
2024-09-11 06:59:38,978 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d
2024-09-11 06:59:39,051 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5
2024-09-11 06:59:39,060 - DEBUG - ==>Verifying data for policy with id: 494f6dc7-fe0f-46e5-b369-9f6a47460f88, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245']
2024-09-11 06:59:39,060 - INFO - VN ctest-vn-24343778 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 06:59:39,060 - DEBUG - Verifying the vn in opserver
2024-09-11 06:59:39,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778 virtual network link through opserver 10.0.0.12
2024-09-11 06:59:39,060 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-09-11 06:59:39,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778?flat'}
2024-09-11 06:59:39,072 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778 is found in opserver
2024-09-11 06:59:39,085 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 06:59:39,091 - DEBUG - VRF ids for VN ctest-vn-24343778: {}
2024-09-11 06:59:39,156 - DEBUG - Services list from nova: [