2024-10-24 13:09:39,606 - INFO - Domain Default found not creating
2024-10-24 13:09:39,800 - INFO - Project ctest-TestBasicPolicy-79872699 not found, creating it
2024-10-24 13:09:40,362 - INFO - Created Project:ctest-TestBasicPolicy-79872699, ID : 055ff018-ba21-4f6c-ad72-bb25fe8f7916
2024-10-24 13:09:42,192 - INFO - ================================================================================
2024-10-24 13:09:42,192 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 13:09:42,192 - 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-10-24 13:09:42,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.19': '0'}} with
2024-10-24 13:09:42,462 - INFO - Initial checks done. Running the testcase now
2024-10-24 13:09:42,462 - INFO -
2024-10-24 13:09:43,121 - DEBUG - Response for create_network : {'network': {'id': '891745b6-0532-434d-9dd3-dbdfd65531a0', 'name': 'ctest-vn-60410080', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-60410080'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 13:09:43,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d121856-bb67-4dae-a108-0710250f76d0', 'name': '', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'network_id': '891745b6-0532-434d-9dd3-dbdfd65531a0', 'ip_version': 4, 'cidr': '208.6.183.64/26', 'allocation_pools': [{'start': '208.6.183.66', 'end': '208.6.183.126'}], 'gateway_ip': '208.6.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.6.183.66', 'tags': [], 'project_id': '055ff018ba214f6cad72bb25fe8f7916'}}
2024-10-24 13:09:43,384 - INFO - Created VN ctest-vn-60410080
2024-10-24 13:09:43,443 - DEBUG - VN ctest-vn-60410080 UUID is 891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:43,827 - DEBUG - Response for create_network : {'network': {'id': '14a87fbf-effb-44e5-9f0f-83985c399ca9', 'name': 'ctest-vn-46859160', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-46859160'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 13:09:44,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a1921e8-eec7-4694-9185-9ba5508a125a', 'name': '', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'network_id': '14a87fbf-effb-44e5-9f0f-83985c399ca9', 'ip_version': 4, 'cidr': '48.64.82.0/26', 'allocation_pools': [{'start': '48.64.82.2', 'end': '48.64.82.62'}], 'gateway_ip': '48.64.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.64.82.2', 'tags': [], 'project_id': '055ff018ba214f6cad72bb25fe8f7916'}}
2024-10-24 13:09:44,097 - INFO - Created VN ctest-vn-46859160
2024-10-24 13:09:44,159 - DEBUG - VN ctest-vn-46859160 UUID is 14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:44,298 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080, 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-79872699:ctest-vn-46859160, 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-10-24 13:09:44,642 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '891745b6-0532-434d-9dd3-dbdfd65531a0', 'name': 'ctest-vn-60410080', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d121856-bb67-4dae-a108-0710250f76d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-60410080'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623']], 'subnet_ipam': [{'subnet_cidr': '208.6.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 13:09:44,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14a87fbf-effb-44e5-9f0f-83985c399ca9', 'name': 'ctest-vn-46859160', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a1921e8-eec7-4694-9185-9ba5508a125a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-46859160'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623']], 'subnet_ipam': [{'subnet_cidr': '48.64.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 13:09:45,115 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 13:09:45,461 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 13:09:45,498 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1
2024-10-24 13:09:45,517 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916
2024-10-24 13:09:45,604 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:45,624 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:45,643 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e
2024-10-24 13:09:45,655 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e
2024-10-24 13:09:45,665 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5dc5899c-c29e-4016-b508-2c6d003bb2b1
2024-10-24 13:09:45,675 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 13:09:45,675 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:45,693 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e
2024-10-24 13:09:45,718 - INFO - Verified VN network id 8 for VN 891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:45,718 - INFO - Verifications in API Server for VN ctest-vn-60410080 passed
2024-10-24 13:09:45,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:45,736 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e
2024-10-24 13:09:45,748 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e
2024-10-24 13:09:45,764 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5dc5899c-c29e-4016-b508-2c6d003bb2b1
2024-10-24 13:09:45,782 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79872699', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9878440955734016845', 'uuid-lslong': '11372675238460731808'}, 'enable': 'true', 'created': '2024-10-24T13:09:43', 'last-modified': '2024-10-24T13:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.174985'}
2024-10-24 13:09:45,790 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 13:09:45,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60410080 passed
2024-10-24 13:09:45,791 - DEBUG - ====Verifying policy data for ctest-vn-60410080 in API_Server ======
2024-10-24 13:09:45,791 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 13:09:45,798 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1
2024-10-24 13:09:45,815 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916
2024-10-24 13:09:45,907 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0
2024-10-24 13:09:45,924 - DEBUG - ==>Verifying data for policy with id: 163071ce-03b3-4d84-8b9b-f643a27b2567, fqn: ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623']
2024-10-24 13:09:45,924 - INFO - VN ctest-vn-60410080 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 13:09:45,924 - DEBUG - Verifying the vn in opserver
2024-10-24 13:09:45,924 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080 virtual network link through opserver 10.0.0.27
2024-10-24 13:09:45,924 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-24 13:09:46,265 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-24 13:09:46,340 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080?flat'}
2024-10-24 13:09:46,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080 is found in opserver
2024-10-24 13:09:46,355 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 13:09:46,361 - DEBUG - VRF ids for VN ctest-vn-60410080: {}
2024-10-24 13:09:46,361 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 13:09:46,369 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1
2024-10-24 13:09:46,385 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916
2024-10-24 13:09:46,476 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:46,496 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:46,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8
2024-10-24 13:09:46,522 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8
2024-10-24 13:09:46,532 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6d0872f9-9b93-4090-98ba-5d309451f7e6
2024-10-24 13:09:46,541 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 13:09:46,541 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:46,557 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8
2024-10-24 13:09:46,580 - INFO - Verified VN network id 9 for VN 14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:46,581 - INFO - Verifications in API Server for VN ctest-vn-46859160 passed
2024-10-24 13:09:46,581 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:46,599 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8
2024-10-24 13:09:46,610 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8
2024-10-24 13:09:46,620 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6d0872f9-9b93-4090-98ba-5d309451f7e6
2024-10-24 13:09:46,637 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79872699', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1488580139187651813', 'uuid-lslong': '11461524267086748841'}, 'enable': 'true', 'created': '2024-10-24T13:09:43', 'last-modified': '2024-10-24T13:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.742260'}
2024-10-24 13:09:46,644 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 13:09:46,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46859160 passed
2024-10-24 13:09:46,644 - DEBUG - ====Verifying policy data for ctest-vn-46859160 in API_Server ======
2024-10-24 13:09:46,644 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 13:09:46,651 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1
2024-10-24 13:09:46,667 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916
2024-10-24 13:09:46,753 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9
2024-10-24 13:09:46,769 - DEBUG - ==>Verifying data for policy with id: 163071ce-03b3-4d84-8b9b-f643a27b2567, fqn: ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623']
2024-10-24 13:09:46,769 - INFO - VN ctest-vn-46859160 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 13:09:46,770 - DEBUG - Verifying the vn in opserver
2024-10-24 13:09:46,770 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160 virtual network link through opserver 10.0.0.27
2024-10-24 13:09:46,770 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-24 13:09:46,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160?flat'}
2024-10-24 13:09:46,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160 is found in opserver
2024-10-24 13:09:46,796 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 13:09:46,802 - DEBUG - VRF ids for VN ctest-vn-46859160: {}
2024-10-24 13:09:46,871 - DEBUG - Services list from nova: [