2024-09-11 14:35:36,520 - INFO - Domain Default found not creating
2024-09-11 14:35:36,690 - INFO - Project ctest-TestBasicPolicy-17981740 not found, creating it
2024-09-11 14:35:37,157 - INFO - Created Project:ctest-TestBasicPolicy-17981740, ID : 48314e6c-e4ed-446a-9067-d03b330251b7
2024-09-11 14:35:38,664 - INFO - ================================================================================
2024-09-11 14:35:38,665 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 14:35:38,665 - 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 14:35:38,920 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.6': '0'}} with
2024-09-11 14:35:38,920 - INFO - Initial checks done. Running the testcase now
2024-09-11 14:35:38,921 - INFO -
2024-09-11 14:35:39,850 - DEBUG - Response for create_network : {'network': {'id': 'bf912cc4-2b25-45a0-9ac0-79d88f236b36', 'name': 'ctest-vn-76849348', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-76849348'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 14:35:40,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '53ac2b6f-393a-4d04-8d5b-6f6911b52c99', 'name': '', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'network_id': 'bf912cc4-2b25-45a0-9ac0-79d88f236b36', 'ip_version': 4, 'cidr': '178.147.10.128/26', 'allocation_pools': [{'start': '178.147.10.130', 'end': '178.147.10.190'}], 'gateway_ip': '178.147.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.147.10.130', 'tags': [], 'project_id': '48314e6ce4ed446a9067d03b330251b7'}}
2024-09-11 14:35:40,054 - INFO - Created VN ctest-vn-76849348
2024-09-11 14:35:40,107 - DEBUG - VN ctest-vn-76849348 UUID is bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:40,407 - DEBUG - Response for create_network : {'network': {'id': 'c858a5ca-0425-4acb-a33b-d00ef5ba6fbe', 'name': 'ctest-vn-64369988', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-64369988'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 14:35:40,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '027fa42f-6168-4c85-9950-8a223c8749c9', 'name': '', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'network_id': 'c858a5ca-0425-4acb-a33b-d00ef5ba6fbe', 'ip_version': 4, 'cidr': '201.241.9.128/26', 'allocation_pools': [{'start': '201.241.9.130', 'end': '201.241.9.190'}], 'gateway_ip': '201.241.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.241.9.130', 'tags': [], 'project_id': '48314e6ce4ed446a9067d03b330251b7'}}
2024-09-11 14:35:40,624 - INFO - Created VN ctest-vn-64369988
2024-09-11 14:35:40,675 - DEBUG - VN ctest-vn-64369988 UUID is c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:40,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348, 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-17981740:ctest-vn-64369988, 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 14:35:41,154 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf912cc4-2b25-45a0-9ac0-79d88f236b36', 'name': 'ctest-vn-76849348', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53ac2b6f-393a-4d04-8d5b-6f6911b52c99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-76849348'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372']], 'subnet_ipam': [{'subnet_cidr': '178.147.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 14:35:41,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c858a5ca-0425-4acb-a33b-d00ef5ba6fbe', 'name': 'ctest-vn-64369988', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['027fa42f-6168-4c85-9950-8a223c8749c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-64369988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372']], 'subnet_ipam': [{'subnet_cidr': '201.241.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 14:35:41,531 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-11 14:35:41,833 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-11 14:35:41,866 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7
2024-09-11 14:35:41,880 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7
2024-09-11 14:35:41,957 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:41,968 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:41,976 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a
2024-09-11 14:35:41,983 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a
2024-09-11 14:35:41,991 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e2420181-d3c3-46e8-93ff-138086382a60
2024-09-11 14:35:41,998 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 14:35:41,998 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:42,009 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a
2024-09-11 14:35:42,023 - INFO - Verified VN network id 8 for VN bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:42,023 - INFO - Verifications in API Server for VN ctest-vn-76849348 passed
2024-09-11 14:35:42,023 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:42,033 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a
2024-09-11 14:35:42,040 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a
2024-09-11 14:35:42,048 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e2420181-d3c3-46e8-93ff-138086382a60
2024-09-11 14:35:42,062 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17981740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13803863553916356000', 'uuid-lslong': '11151046648390708022'}, 'enable': 'true', 'created': '2024-09-11T14:35:39', 'last-modified': '2024-09-11T14:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930472'}
2024-09-11 14:35:42,069 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 14:35:42,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76849348 passed
2024-09-11 14:35:42,069 - DEBUG - ====Verifying policy data for ctest-vn-76849348 in API_Server ======
2024-09-11 14:35:42,069 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-11 14:35:42,075 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7
2024-09-11 14:35:42,087 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7
2024-09-11 14:35:42,153 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36
2024-09-11 14:35:42,161 - DEBUG - ==>Verifying data for policy with id: 6fd9e033-543a-4e55-aa3d-a01ff92d50a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372']
2024-09-11 14:35:42,161 - INFO - VN ctest-vn-76849348 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 14:35:42,161 - DEBUG - Verifying the vn in opserver
2024-09-11 14:35:42,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348 virtual network link through opserver 10.0.0.48
2024-09-11 14:35:42,161 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-09-11 14:35:42,454 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-09-11 14:35:42,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348?flat'}
2024-09-11 14:35:42,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348 is found in opserver
2024-09-11 14:35:42,527 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 14:35:42,532 - DEBUG - VRF ids for VN ctest-vn-76849348: {}
2024-09-11 14:35:42,532 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-11 14:35:42,539 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7
2024-09-11 14:35:42,552 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7
2024-09-11 14:35:42,622 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:42,632 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:42,641 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe
2024-09-11 14:35:42,649 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe
2024-09-11 14:35:42,658 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/8191a454-f278-46bd-a273-ec987cd1c9ce
2024-09-11 14:35:42,666 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 14:35:42,666 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:42,675 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe
2024-09-11 14:35:42,689 - INFO - Verified VN network id 9 for VN c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:42,689 - INFO - Verifications in API Server for VN ctest-vn-64369988 passed
2024-09-11 14:35:42,689 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:42,699 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe
2024-09-11 14:35:42,707 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe
2024-09-11 14:35:42,714 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/8191a454-f278-46bd-a273-ec987cd1c9ce
2024-09-11 14:35:42,727 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17981740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14436470892607654603', 'uuid-lslong': '11762223614478938046'}, 'enable': 'true', 'created': '2024-09-11T14:35:40', 'last-modified': '2024-09-11T14:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361376'}
2024-09-11 14:35:42,734 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 14:35:42,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64369988 passed
2024-09-11 14:35:42,734 - DEBUG - ====Verifying policy data for ctest-vn-64369988 in API_Server ======
2024-09-11 14:35:42,735 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-11 14:35:42,741 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7
2024-09-11 14:35:42,755 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7
2024-09-11 14:35:42,827 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe
2024-09-11 14:35:42,836 - DEBUG - ==>Verifying data for policy with id: 6fd9e033-543a-4e55-aa3d-a01ff92d50a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372']
2024-09-11 14:35:42,836 - INFO - VN ctest-vn-64369988 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 14:35:42,836 - DEBUG - Verifying the vn in opserver
2024-09-11 14:35:42,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988 virtual network link through opserver 10.0.0.48
2024-09-11 14:35:42,836 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-09-11 14:35:42,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988?flat'}
2024-09-11 14:35:42,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988 is found in opserver
2024-09-11 14:35:42,861 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 14:35:42,868 - DEBUG - VRF ids for VN ctest-vn-64369988: {}
2024-09-11 14:35:42,929 - DEBUG - Services list from nova: [