2024-08-27 04:16:48,722 - INFO - Domain Default found not creating
2024-08-27 04:16:48,937 - INFO - Project ctest-TestBasicPolicy-24824703 not found, creating it
2024-08-27 04:16:49,427 - INFO - Created Project:ctest-TestBasicPolicy-24824703, ID : e6d68760-690f-41d9-b6cf-06032311eae0
2024-08-27 04:16:51,787 - INFO - ================================================================================
2024-08-27 04:16:51,787 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 04:16:51,787 - 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-08-27 04:16:52,062 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.10': '0'}} with
2024-08-27 04:16:52,062 - INFO - Initial checks done. Running the testcase now
2024-08-27 04:16:52,062 - INFO -
2024-08-27 04:16:52,627 - DEBUG - Response for create_network : {'network': {'id': 'b1068701-3520-4328-ae8a-fbf0b230ff2e', 'name': 'ctest-vn-22225692', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-22225692'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:16:52,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6e559ad-4dfc-4c7f-b394-ba39b9cebd98', 'name': '', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'network_id': 'b1068701-3520-4328-ae8a-fbf0b230ff2e', 'ip_version': 4, 'cidr': '3.229.215.0/26', 'allocation_pools': [{'start': '3.229.215.2', 'end': '3.229.215.62'}], 'gateway_ip': '3.229.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.229.215.2', 'tags': [], 'project_id': 'e6d68760690f41d9b6cf06032311eae0'}}
2024-08-27 04:16:52,852 - INFO - Created VN ctest-vn-22225692
2024-08-27 04:16:52,904 - DEBUG - VN ctest-vn-22225692 UUID is b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:53,226 - DEBUG - Response for create_network : {'network': {'id': 'ab92be52-c94b-47a5-a094-0551517f06f2', 'name': 'ctest-vn-09089859', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-09089859'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:16:53,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '633bf3ee-bd57-49ff-afff-e246ed46ecd6', 'name': '', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'network_id': 'ab92be52-c94b-47a5-a094-0551517f06f2', 'ip_version': 4, 'cidr': '79.152.58.64/26', 'allocation_pools': [{'start': '79.152.58.66', 'end': '79.152.58.126'}], 'gateway_ip': '79.152.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.152.58.66', 'tags': [], 'project_id': 'e6d68760690f41d9b6cf06032311eae0'}}
2024-08-27 04:16:53,471 - INFO - Created VN ctest-vn-09089859
2024-08-27 04:16:53,524 - DEBUG - VN ctest-vn-09089859 UUID is ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:53,641 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692, 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-24824703:ctest-vn-09089859, 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-08-27 04:16:53,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1068701-3520-4328-ae8a-fbf0b230ff2e', 'name': 'ctest-vn-22225692', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6e559ad-4dfc-4c7f-b394-ba39b9cebd98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-22225692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670']], 'subnet_ipam': [{'subnet_cidr': '3.229.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:16:54,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab92be52-c94b-47a5-a094-0551517f06f2', 'name': 'ctest-vn-09089859', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['633bf3ee-bd57-49ff-afff-e246ed46ecd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-09089859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670']], 'subnet_ipam': [{'subnet_cidr': '79.152.58.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:16:54,384 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-08-27 04:16:54,683 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-08-27 04:16:54,714 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54
2024-08-27 04:16:54,728 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0
2024-08-27 04:16:54,802 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:54,815 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:54,827 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af
2024-08-27 04:16:54,837 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af
2024-08-27 04:16:54,847 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/672083e3-97c0-42ec-87cb-cf70a8b0f0ff
2024-08-27 04:16:54,855 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:16:54,855 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:54,866 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af
2024-08-27 04:16:54,883 - INFO - Verified VN network id 7 for VN b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:54,883 - INFO - Verifications in API Server for VN ctest-vn-22225692 passed
2024-08-27 04:16:54,883 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:54,896 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af
2024-08-27 04:16:54,906 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af
2024-08-27 04:16:54,913 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/672083e3-97c0-42ec-87cb-cf70a8b0f0ff
2024-08-27 04:16:54,926 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24824703', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12756031433829532456', 'uuid-lslong': '12577141920585809710'}, 'enable': 'true', 'created': '2024-08-27T04:16:52', 'last-modified': '2024-08-27T04:16:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005379'}
2024-08-27 04:16:54,933 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:16:54,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22225692 passed
2024-08-27 04:16:54,933 - DEBUG - ====Verifying policy data for ctest-vn-22225692 in API_Server ======
2024-08-27 04:16:54,933 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-08-27 04:16:54,939 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54
2024-08-27 04:16:54,952 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0
2024-08-27 04:16:55,021 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e
2024-08-27 04:16:55,030 - DEBUG - ==>Verifying data for policy with id: b475e077-9128-448e-ab59-4fd4f9409d04, fqn: ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670']
2024-08-27 04:16:55,030 - INFO - VN ctest-vn-22225692 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:16:55,030 - DEBUG - Verifying the vn in opserver
2024-08-27 04:16:55,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692 virtual network link through opserver 10.0.0.59
2024-08-27 04:16:55,030 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2024-08-27 04:16:55,356 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2024-08-27 04:16:55,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692?flat'}
2024-08-27 04:16:55,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692 is found in opserver
2024-08-27 04:16:55,440 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:16:55,447 - DEBUG - VRF ids for VN ctest-vn-22225692: {}
2024-08-27 04:16:55,447 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-08-27 04:16:55,454 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54
2024-08-27 04:16:55,470 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0
2024-08-27 04:16:55,547 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:55,560 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:55,574 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88
2024-08-27 04:16:55,586 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88
2024-08-27 04:16:55,595 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/be333eae-abd3-4183-a73b-62905b5a39df
2024-08-27 04:16:55,604 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:16:55,604 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:55,614 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88
2024-08-27 04:16:55,630 - INFO - Verified VN network id 8 for VN ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:55,630 - INFO - Verifications in API Server for VN ctest-vn-09089859 passed
2024-08-27 04:16:55,630 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:55,641 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88
2024-08-27 04:16:55,650 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88
2024-08-27 04:16:55,658 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/be333eae-abd3-4183-a73b-62905b5a39df
2024-08-27 04:16:55,673 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24824703', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12363153189859182501', 'uuid-lslong': '11570879189439416050'}, 'enable': 'true', 'created': '2024-08-27T04:16:53', 'last-modified': '2024-08-27T04:16:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509930'}
2024-08-27 04:16:55,680 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:16:55,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09089859 passed
2024-08-27 04:16:55,680 - DEBUG - ====Verifying policy data for ctest-vn-09089859 in API_Server ======
2024-08-27 04:16:55,680 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-08-27 04:16:55,687 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54
2024-08-27 04:16:55,703 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0
2024-08-27 04:16:55,782 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2
2024-08-27 04:16:55,793 - DEBUG - ==>Verifying data for policy with id: b475e077-9128-448e-ab59-4fd4f9409d04, fqn: ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670']
2024-08-27 04:16:55,793 - INFO - VN ctest-vn-09089859 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:16:55,793 - DEBUG - Verifying the vn in opserver
2024-08-27 04:16:55,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859 virtual network link through opserver 10.0.0.59
2024-08-27 04:16:55,793 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2024-08-27 04:16:55,807 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859?flat'}
2024-08-27 04:16:55,807 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859 is found in opserver
2024-08-27 04:16:55,820 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:16:55,827 - DEBUG - VRF ids for VN ctest-vn-09089859: {}
2024-08-27 04:16:55,889 - DEBUG - Services list from nova: [