2024-09-04 23:14:47,044 - INFO - Domain Default found not creating
2024-09-04 23:14:47,197 - INFO - Project ctest-TestBasicPolicy-11564651 not found, creating it
2024-09-04 23:14:47,657 - INFO - Created Project:ctest-TestBasicPolicy-11564651, ID : 84cd9764-d117-4ab9-95ce-742b8c4dd190
2024-09-04 23:14:49,116 - INFO - ================================================================================
2024-09-04 23:14:49,116 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 23:14:49,116 - 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-04 23:14:49,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.20': '0'}} with
2024-09-04 23:14:49,371 - INFO - Initial checks done. Running the testcase now
2024-09-04 23:14:49,371 - INFO -
2024-09-04 23:14:49,918 - DEBUG - Response for create_network : {'network': {'id': 'a8fa5d4a-eab0-44fa-b6ec-205098132449', 'name': 'ctest-vn-56757958', 'tenant_id': '84cd9764d1174ab995ce742b8c4dd190', 'project_id': '84cd9764d1174ab995ce742b8c4dd190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-vn-56757958'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:14:50,081 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bac0a9f3-57b6-401f-b2ff-0e80f370b80d', 'name': '', 'tenant_id': '84cd9764d1174ab995ce742b8c4dd190', 'network_id': 'a8fa5d4a-eab0-44fa-b6ec-205098132449', 'ip_version': 4, 'cidr': '143.205.162.128/26', 'allocation_pools': [{'start': '143.205.162.130', 'end': '143.205.162.190'}], 'gateway_ip': '143.205.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.205.162.130', 'tags': [], 'project_id': '84cd9764d1174ab995ce742b8c4dd190'}}
2024-09-04 23:14:50,099 - INFO - Created VN ctest-vn-56757958
2024-09-04 23:14:50,152 - DEBUG - VN ctest-vn-56757958 UUID is a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:50,429 - DEBUG - Response for create_network : {'network': {'id': 'd5a6149a-5774-45dc-85c3-ac5af238100d', 'name': 'ctest-vn-03378115', 'tenant_id': '84cd9764d1174ab995ce742b8c4dd190', 'project_id': '84cd9764d1174ab995ce742b8c4dd190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-vn-03378115'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:14:50,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '843a858d-797f-4fd1-9a7e-fa749951bd08', 'name': '', 'tenant_id': '84cd9764d1174ab995ce742b8c4dd190', 'network_id': 'd5a6149a-5774-45dc-85c3-ac5af238100d', 'ip_version': 4, 'cidr': '50.196.134.0/26', 'allocation_pools': [{'start': '50.196.134.2', 'end': '50.196.134.62'}], 'gateway_ip': '50.196.134.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.196.134.2', 'tags': [], 'project_id': '84cd9764d1174ab995ce742b8c4dd190'}}
2024-09-04 23:14:50,615 - INFO - Created VN ctest-vn-03378115
2024-09-04 23:14:50,664 - DEBUG - VN ctest-vn-03378115 UUID is d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:50,778 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-56757958, 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-11564651:ctest-vn-03378115, 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-04 23:14:51,070 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8fa5d4a-eab0-44fa-b6ec-205098132449', 'name': 'ctest-vn-56757958', 'tenant_id': '84cd9764d1174ab995ce742b8c4dd190', 'project_id': '84cd9764d1174ab995ce742b8c4dd190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bac0a9f3-57b6-401f-b2ff-0e80f370b80d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-vn-56757958'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-policy-allow-all-19749070']], 'subnet_ipam': [{'subnet_cidr': '143.205.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:14:51,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5a6149a-5774-45dc-85c3-ac5af238100d', 'name': 'ctest-vn-03378115', 'tenant_id': '84cd9764d1174ab995ce742b8c4dd190', 'project_id': '84cd9764d1174ab995ce742b8c4dd190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['843a858d-797f-4fd1-9a7e-fa749951bd08'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-vn-03378115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-policy-allow-all-19749070']], 'subnet_ipam': [{'subnet_cidr': '50.196.134.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:14:51,472 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-04 23:14:51,769 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-04 23:14:51,799 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9197a2f8-167f-4b5e-b833-618d75054802
2024-09-04 23:14:51,814 - DEBUG - Requesting: http://10.0.0.57:8082/project/84cd9764-d117-4ab9-95ce-742b8c4dd190
2024-09-04 23:14:51,886 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:51,895 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:51,903 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/002e06c1-db65-47d0-8676-d1ad438edc30
2024-09-04 23:14:51,910 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/002e06c1-db65-47d0-8676-d1ad438edc30
2024-09-04 23:14:51,916 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f075dfc6-31af-4945-8ab1-b6a42cb2ba52
2024-09-04 23:14:51,922 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 23:14:51,922 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:51,929 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/002e06c1-db65-47d0-8676-d1ad438edc30
2024-09-04 23:14:51,940 - INFO - Verified VN network id 9 for VN a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:51,940 - INFO - Verifications in API Server for VN ctest-vn-56757958 passed
2024-09-04 23:14:51,940 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:51,948 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/002e06c1-db65-47d0-8676-d1ad438edc30
2024-09-04 23:14:51,954 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/002e06c1-db65-47d0-8676-d1ad438edc30
2024-09-04 23:14:51,959 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f075dfc6-31af-4945-8ab1-b6a42cb2ba52
2024-09-04 23:14:51,970 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-56757958', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11564651', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12176147118895940858', 'uuid-lslong': '13180945739927462985'}, 'enable': 'true', 'created': '2024-09-04T23:14:49', 'last-modified': '2024-09-04T23:14:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924458'}
2024-09-04 23:14:51,977 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 23:14:51,977 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56757958 passed
2024-09-04 23:14:51,978 - DEBUG - ====Verifying policy data for ctest-vn-56757958 in API_Server ======
2024-09-04 23:14:51,978 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-04 23:14:51,983 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9197a2f8-167f-4b5e-b833-618d75054802
2024-09-04 23:14:51,996 - DEBUG - Requesting: http://10.0.0.57:8082/project/84cd9764-d117-4ab9-95ce-742b8c4dd190
2024-09-04 23:14:52,064 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a8fa5d4a-eab0-44fa-b6ec-205098132449
2024-09-04 23:14:52,073 - DEBUG - ==>Verifying data for policy with id: 5c8f1388-1b35-45d7-bb1f-99c359e9a9c2, fqn: ['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-policy-allow-all-19749070']
2024-09-04 23:14:52,073 - INFO - VN ctest-vn-56757958 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 23:14:52,073 - DEBUG - Verifying the vn in opserver
2024-09-04 23:14:52,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-56757958 virtual network link through opserver 10.0.0.57
2024-09-04 23:14:52,073 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-09-04 23:14:52,364 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-09-04 23:14:52,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-56757958', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-56757958?flat'}
2024-09-04 23:14:52,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-56757958 is found in opserver
2024-09-04 23:14:52,432 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 23:14:52,436 - DEBUG - VRF ids for VN ctest-vn-56757958: {}
2024-09-04 23:14:52,437 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-04 23:14:52,443 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9197a2f8-167f-4b5e-b833-618d75054802
2024-09-04 23:14:52,456 - DEBUG - Requesting: http://10.0.0.57:8082/project/84cd9764-d117-4ab9-95ce-742b8c4dd190
2024-09-04 23:14:52,526 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:52,536 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:52,544 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f053df2c-ef97-4a50-b375-c10469378869
2024-09-04 23:14:52,550 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f053df2c-ef97-4a50-b375-c10469378869
2024-09-04 23:14:52,556 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/845a6b5f-0a51-4044-aeb6-02270b6da25c
2024-09-04 23:14:52,561 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 23:14:52,562 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:52,568 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f053df2c-ef97-4a50-b375-c10469378869
2024-09-04 23:14:52,579 - INFO - Verified VN network id 10 for VN d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:52,579 - INFO - Verifications in API Server for VN ctest-vn-03378115 passed
2024-09-04 23:14:52,579 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:52,587 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f053df2c-ef97-4a50-b375-c10469378869
2024-09-04 23:14:52,593 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f053df2c-ef97-4a50-b375-c10469378869
2024-09-04 23:14:52,599 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/845a6b5f-0a51-4044-aeb6-02270b6da25c
2024-09-04 23:14:52,611 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-03378115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11564651', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15395015029337376220', 'uuid-lslong': '9638737134113787917'}, 'enable': 'true', 'created': '2024-09-04T23:14:50', 'last-modified': '2024-09-04T23:14:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318226'}
2024-09-04 23:14:52,617 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 23:14:52,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03378115 passed
2024-09-04 23:14:52,618 - DEBUG - ====Verifying policy data for ctest-vn-03378115 in API_Server ======
2024-09-04 23:14:52,618 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-04 23:14:52,623 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9197a2f8-167f-4b5e-b833-618d75054802
2024-09-04 23:14:52,636 - DEBUG - Requesting: http://10.0.0.57:8082/project/84cd9764-d117-4ab9-95ce-742b8c4dd190
2024-09-04 23:14:52,708 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d5a6149a-5774-45dc-85c3-ac5af238100d
2024-09-04 23:14:52,715 - DEBUG - ==>Verifying data for policy with id: 5c8f1388-1b35-45d7-bb1f-99c359e9a9c2, fqn: ['default-domain', 'ctest-TestBasicPolicy-11564651', 'ctest-policy-allow-all-19749070']
2024-09-04 23:14:52,715 - INFO - VN ctest-vn-03378115 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 23:14:52,716 - DEBUG - Verifying the vn in opserver
2024-09-04 23:14:52,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-03378115 virtual network link through opserver 10.0.0.57
2024-09-04 23:14:52,716 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-09-04 23:14:52,729 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-03378115', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-03378115?flat'}
2024-09-04 23:14:52,729 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11564651:ctest-vn-03378115 is found in opserver
2024-09-04 23:14:52,741 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 23:14:52,746 - DEBUG - VRF ids for VN ctest-vn-03378115: {}
2024-09-04 23:14:52,805 - DEBUG - Services list from nova: [