2024-09-10 21:00:07,232 - INFO - Domain Default found not creating
2024-09-10 21:00:07,452 - INFO - Project ctest-TestBasicPolicy-84446428 not found, creating it
2024-09-10 21:00:07,972 - INFO - Created Project:ctest-TestBasicPolicy-84446428, ID : bf258979-049c-436a-b753-45696afdcf18
2024-09-10 21:00:09,597 - INFO - ================================================================================
2024-09-10 21:00:09,598 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-10 21:00:09,598 - 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-10 21:00:09,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with
2024-09-10 21:00:09,870 - INFO - Initial checks done. Running the testcase now
2024-09-10 21:00:09,870 - INFO -
2024-09-10 21:00:10,468 - DEBUG - Response for create_network : {'network': {'id': '97e0419b-4da2-4e84-98ee-49d5521d47aa', 'name': 'ctest-vn-68368574', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-68368574'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:00:10,643 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0774690-e1c4-449a-89f0-3c0e6029c73e', 'name': '', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'network_id': '97e0419b-4da2-4e84-98ee-49d5521d47aa', 'ip_version': 4, 'cidr': '177.203.69.64/26', 'allocation_pools': [{'start': '177.203.69.66', 'end': '177.203.69.126'}], 'gateway_ip': '177.203.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.203.69.66', 'tags': [], 'project_id': 'bf258979049c436ab75345696afdcf18'}}
2024-09-10 21:00:10,666 - INFO - Created VN ctest-vn-68368574
2024-09-10 21:00:10,721 - DEBUG - VN ctest-vn-68368574 UUID is 97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:11,033 - DEBUG - Response for create_network : {'network': {'id': '81b040e1-cfc4-4205-8567-c8ff0807d9d3', 'name': 'ctest-vn-83431414', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-83431414'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:00:11,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fc545ef-1652-438f-89f8-f8c7d53b6cd6', 'name': '', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'network_id': '81b040e1-cfc4-4205-8567-c8ff0807d9d3', 'ip_version': 4, 'cidr': '124.148.218.128/26', 'allocation_pools': [{'start': '124.148.218.130', 'end': '124.148.218.190'}], 'gateway_ip': '124.148.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.148.218.130', 'tags': [], 'project_id': 'bf258979049c436ab75345696afdcf18'}}
2024-09-10 21:00:11,296 - INFO - Created VN ctest-vn-83431414
2024-09-10 21:00:11,348 - DEBUG - VN ctest-vn-83431414 UUID is 81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:11,485 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574, 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-84446428:ctest-vn-83431414, 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-10 21:00:11,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97e0419b-4da2-4e84-98ee-49d5521d47aa', 'name': 'ctest-vn-68368574', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0774690-e1c4-449a-89f0-3c0e6029c73e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-68368574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712']], 'subnet_ipam': [{'subnet_cidr': '177.203.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:00:12,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81b040e1-cfc4-4205-8567-c8ff0807d9d3', 'name': 'ctest-vn-83431414', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6fc545ef-1652-438f-89f8-f8c7d53b6cd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-83431414'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712']], 'subnet_ipam': [{'subnet_cidr': '124.148.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:00:12,297 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-10 21:00:12,603 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-10 21:00:12,931 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10
2024-09-10 21:00:12,947 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18
2024-09-10 21:00:13,034 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:13,045 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:13,057 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289
2024-09-10 21:00:13,065 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289
2024-09-10 21:00:13,073 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/42e8d936-e910-4e78-b8c8-31fcf6bb4fa2
2024-09-10 21:00:13,082 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 21:00:13,082 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:13,093 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289
2024-09-10 21:00:13,111 - INFO - Verified VN network id 8 for VN 97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:13,111 - INFO - Verifications in API Server for VN ctest-vn-68368574 passed
2024-09-10 21:00:13,111 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:13,122 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289
2024-09-10 21:00:13,130 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289
2024-09-10 21:00:13,139 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/42e8d936-e910-4e78-b8c8-31fcf6bb4fa2
2024-09-10 21:00:13,156 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84446428', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10943819229788524164', 'uuid-lslong': '11019826518776694698'}, 'enable': 'true', 'created': '2024-09-10T21:00:10', 'last-modified': '2024-09-10T21:00:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350021'}
2024-09-10 21:00:13,168 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 21:00:13,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68368574 passed
2024-09-10 21:00:13,169 - DEBUG - ====Verifying policy data for ctest-vn-68368574 in API_Server ======
2024-09-10 21:00:13,169 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-10 21:00:13,179 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10
2024-09-10 21:00:13,195 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18
2024-09-10 21:00:13,283 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa
2024-09-10 21:00:13,293 - DEBUG - ==>Verifying data for policy with id: 69ea9d22-7264-40f5-9b82-15c1140bac51, fqn: ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712']
2024-09-10 21:00:13,293 - INFO - VN ctest-vn-68368574 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 21:00:13,293 - DEBUG - Verifying the vn in opserver
2024-09-10 21:00:13,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574 virtual network link through opserver 10.0.0.45
2024-09-10 21:00:13,293 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-09-10 21:00:13,601 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-09-10 21:00:13,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574?flat'}
2024-09-10 21:00:13,707 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574 is found in opserver
2024-09-10 21:00:13,722 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 21:00:13,729 - DEBUG - VRF ids for VN ctest-vn-68368574: {}
2024-09-10 21:00:13,730 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-10 21:00:13,737 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10
2024-09-10 21:00:13,752 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18
2024-09-10 21:00:13,830 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:13,843 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:13,852 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e
2024-09-10 21:00:13,859 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e
2024-09-10 21:00:13,867 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/afa5aa3c-7ab6-4215-be71-1632d866c228
2024-09-10 21:00:13,876 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 21:00:13,876 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:13,886 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e
2024-09-10 21:00:13,900 - INFO - Verified VN network id 9 for VN 81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:13,900 - INFO - Verifications in API Server for VN ctest-vn-83431414 passed
2024-09-10 21:00:13,900 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:13,909 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e
2024-09-10 21:00:13,917 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e
2024-09-10 21:00:13,924 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/afa5aa3c-7ab6-4215-be71-1632d866c228
2024-09-10 21:00:13,941 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84446428', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9345040565391344133', 'uuid-lslong': '9612872927322560979'}, 'enable': 'true', 'created': '2024-09-10T21:00:11', 'last-modified': '2024-09-10T21:00:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.875320'}
2024-09-10 21:00:13,950 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 21:00:13,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83431414 passed
2024-09-10 21:00:13,950 - DEBUG - ====Verifying policy data for ctest-vn-83431414 in API_Server ======
2024-09-10 21:00:13,950 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-10 21:00:13,957 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10
2024-09-10 21:00:13,972 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18
2024-09-10 21:00:14,043 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3
2024-09-10 21:00:14,053 - DEBUG - ==>Verifying data for policy with id: 69ea9d22-7264-40f5-9b82-15c1140bac51, fqn: ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712']
2024-09-10 21:00:14,053 - INFO - VN ctest-vn-83431414 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 21:00:14,053 - DEBUG - Verifying the vn in opserver
2024-09-10 21:00:14,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414 virtual network link through opserver 10.0.0.45
2024-09-10 21:00:14,053 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-09-10 21:00:14,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414?flat'}
2024-09-10 21:00:14,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414 is found in opserver
2024-09-10 21:00:14,079 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 21:00:14,086 - DEBUG - VRF ids for VN ctest-vn-83431414: {}
2024-09-10 21:00:14,156 - DEBUG - Services list from nova: [