2024-08-30 06:24:20,827 - INFO - Domain Default found not creating
2024-08-30 06:24:20,986 - INFO - Project ctest-TestBasicPolicy-29193156 not found, creating it
2024-08-30 06:24:21,501 - INFO - Created Project:ctest-TestBasicPolicy-29193156, ID : 4913acec-dfc9-4065-b5aa-6689561d6922
2024-08-30 06:24:23,098 - INFO - ================================================================================
2024-08-30 06:24:23,098 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-30 06:24:23,098 - 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-30 06:24:23,362 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.18': '0'}} with
2024-08-30 06:24:23,362 - INFO - Initial checks done. Running the testcase now
2024-08-30 06:24:23,362 - INFO -
2024-08-30 06:24:23,943 - DEBUG - Response for create_network : {'network': {'id': '78dd607b-2eb4-4ca8-bae7-c421ad46e5f9', 'name': 'ctest-vn-63855203', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-63855203'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 06:24:24,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc0298b0-5e73-4ac8-8d3a-60765983695d', 'name': '', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'network_id': '78dd607b-2eb4-4ca8-bae7-c421ad46e5f9', 'ip_version': 4, 'cidr': '24.117.81.128/26', 'allocation_pools': [{'start': '24.117.81.130', 'end': '24.117.81.190'}], 'gateway_ip': '24.117.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.117.81.130', 'tags': [], 'project_id': '4913acecdfc94065b5aa6689561d6922'}}
2024-08-30 06:24:24,121 - INFO - Created VN ctest-vn-63855203
2024-08-30 06:24:24,172 - DEBUG - VN ctest-vn-63855203 UUID is 78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:24,502 - DEBUG - Response for create_network : {'network': {'id': '4b40cfad-265e-4021-b0d6-4dfb88cb3af5', 'name': 'ctest-vn-98444999', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-98444999'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 06:24:24,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '903b70db-4447-43df-954e-215ee0c8da63', 'name': '', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'network_id': '4b40cfad-265e-4021-b0d6-4dfb88cb3af5', 'ip_version': 4, 'cidr': '81.206.135.0/26', 'allocation_pools': [{'start': '81.206.135.2', 'end': '81.206.135.62'}], 'gateway_ip': '81.206.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.206.135.2', 'tags': [], 'project_id': '4913acecdfc94065b5aa6689561d6922'}}
2024-08-30 06:24:24,726 - INFO - Created VN ctest-vn-98444999
2024-08-30 06:24:24,776 - DEBUG - VN ctest-vn-98444999 UUID is 4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:24,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203, 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-29193156:ctest-vn-98444999, 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-30 06:24:25,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78dd607b-2eb4-4ca8-bae7-c421ad46e5f9', 'name': 'ctest-vn-63855203', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc0298b0-5e73-4ac8-8d3a-60765983695d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-63855203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907']], 'subnet_ipam': [{'subnet_cidr': '24.117.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 06:24:25,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b40cfad-265e-4021-b0d6-4dfb88cb3af5', 'name': 'ctest-vn-98444999', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['903b70db-4447-43df-954e-215ee0c8da63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-98444999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907']], 'subnet_ipam': [{'subnet_cidr': '81.206.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 06:24:25,620 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-30 06:24:25,922 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-30 06:24:25,951 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895
2024-08-30 06:24:25,965 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922
2024-08-30 06:24:26,040 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:26,049 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:26,057 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003
2024-08-30 06:24:26,063 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003
2024-08-30 06:24:26,069 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/26caab84-fd9f-40af-9566-05196b94cea6
2024-08-30 06:24:26,076 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 06:24:26,076 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:26,083 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003
2024-08-30 06:24:26,093 - INFO - Verified VN network id 9 for VN 78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:26,093 - INFO - Verifications in API Server for VN ctest-vn-63855203 passed
2024-08-30 06:24:26,093 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:26,101 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003
2024-08-30 06:24:26,110 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003
2024-08-30 06:24:26,121 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/26caab84-fd9f-40af-9566-05196b94cea6
2024-08-30 06:24:26,132 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29193156', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8709223336585219240', 'uuid-lslong': '13467948859594827257'}, 'enable': 'true', 'created': '2024-08-30T06:24:23', 'last-modified': '2024-08-30T06:24:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955249'}
2024-08-30 06:24:26,138 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 06:24:26,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63855203 passed
2024-08-30 06:24:26,138 - DEBUG - ====Verifying policy data for ctest-vn-63855203 in API_Server ======
2024-08-30 06:24:26,138 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-30 06:24:26,143 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895
2024-08-30 06:24:26,154 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922
2024-08-30 06:24:26,229 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9
2024-08-30 06:24:26,236 - DEBUG - ==>Verifying data for policy with id: 3ce9d972-9365-4a9b-b169-08d30059def3, fqn: ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907']
2024-08-30 06:24:26,236 - INFO - VN ctest-vn-63855203 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 06:24:26,237 - DEBUG - Verifying the vn in opserver
2024-08-30 06:24:26,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203 virtual network link through opserver 10.0.0.46
2024-08-30 06:24:26,237 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-08-30 06:24:26,539 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-08-30 06:24:26,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203?flat'}
2024-08-30 06:24:26,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203 is found in opserver
2024-08-30 06:24:26,607 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 06:24:26,620 - DEBUG - VRF ids for VN ctest-vn-63855203: {}
2024-08-30 06:24:26,620 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-30 06:24:26,630 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895
2024-08-30 06:24:26,643 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922
2024-08-30 06:24:26,728 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:26,738 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:26,755 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1
2024-08-30 06:24:26,761 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1
2024-08-30 06:24:26,788 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/e9fd9481-b116-4713-a342-26b425569f99
2024-08-30 06:24:26,804 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 06:24:26,804 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:26,811 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1
2024-08-30 06:24:26,821 - INFO - Verified VN network id 10 for VN 4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:26,821 - INFO - Verifications in API Server for VN ctest-vn-98444999 passed
2024-08-30 06:24:26,821 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:26,829 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1
2024-08-30 06:24:26,835 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1
2024-08-30 06:24:26,841 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/e9fd9481-b116-4713-a342-26b425569f99
2024-08-30 06:24:26,862 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29193156', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5422562293934080033', 'uuid-lslong': '12742457938418547445'}, 'enable': 'true', 'created': '2024-08-30T06:24:24', 'last-modified': '2024-08-30T06:24:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449573'}
2024-08-30 06:24:26,868 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 06:24:26,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98444999 passed
2024-08-30 06:24:26,868 - DEBUG - ====Verifying policy data for ctest-vn-98444999 in API_Server ======
2024-08-30 06:24:26,868 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-30 06:24:26,873 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895
2024-08-30 06:24:26,884 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922
2024-08-30 06:24:26,951 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5
2024-08-30 06:24:26,959 - DEBUG - ==>Verifying data for policy with id: 3ce9d972-9365-4a9b-b169-08d30059def3, fqn: ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907']
2024-08-30 06:24:26,959 - INFO - VN ctest-vn-98444999 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 06:24:26,959 - DEBUG - Verifying the vn in opserver
2024-08-30 06:24:26,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999 virtual network link through opserver 10.0.0.46
2024-08-30 06:24:26,960 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-08-30 06:24:26,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999?flat'}
2024-08-30 06:24:26,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999 is found in opserver
2024-08-30 06:24:26,979 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 06:24:26,985 - DEBUG - VRF ids for VN ctest-vn-98444999: {}
2024-08-30 06:24:27,039 - DEBUG - Services list from nova: [