2024-11-09 08:54:50,080 - INFO - Domain Default found not creating
2024-11-09 08:54:50,260 - INFO - Project ctest-TestBasicPolicy-50219836 not found, creating it
2024-11-09 08:54:50,786 - INFO - Created Project:ctest-TestBasicPolicy-50219836, ID : cad35443-4364-44b7-9077-18d809286997
2024-11-09 08:54:52,375 - INFO - ================================================================================
2024-11-09 08:54:52,376 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-09 08:54:52,376 - 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-11-09 08:54:52,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.29': '0'}} with
2024-11-09 08:54:52,644 - INFO - Initial checks done. Running the testcase now
2024-11-09 08:54:52,644 - INFO -
2024-11-09 08:54:53,238 - DEBUG - Response for create_network : {'network': {'id': 'b5e807a3-9963-4c53-91d7-7ab28132589c', 'name': 'ctest-vn-34617204', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-34617204'], 'port_security_enabled': True, 'description': ''}}
2024-11-09 08:54:53,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c2cede6-5635-4d55-9302-c2df15b1c633', 'name': '', 'tenant_id': 'cad35443436444b7907718d809286997', 'network_id': 'b5e807a3-9963-4c53-91d7-7ab28132589c', 'ip_version': 4, 'cidr': '153.115.118.64/26', 'allocation_pools': [{'start': '153.115.118.66', 'end': '153.115.118.126'}], 'gateway_ip': '153.115.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.115.118.66', 'tags': [], 'project_id': 'cad35443436444b7907718d809286997'}}
2024-11-09 08:54:53,482 - INFO - Created VN ctest-vn-34617204
2024-11-09 08:54:53,541 - DEBUG - VN ctest-vn-34617204 UUID is b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:53,864 - DEBUG - Response for create_network : {'network': {'id': '973777ad-90a5-46e7-a3fa-02e21ffaf25e', 'name': 'ctest-vn-46279932', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-46279932'], 'port_security_enabled': True, 'description': ''}}
2024-11-09 08:54:54,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce1de642-ac35-45ac-a350-bfabc55d6d49', 'name': '', 'tenant_id': 'cad35443436444b7907718d809286997', 'network_id': '973777ad-90a5-46e7-a3fa-02e21ffaf25e', 'ip_version': 4, 'cidr': '68.96.38.128/26', 'allocation_pools': [{'start': '68.96.38.130', 'end': '68.96.38.190'}], 'gateway_ip': '68.96.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.96.38.130', 'tags': [], 'project_id': 'cad35443436444b7907718d809286997'}}
2024-11-09 08:54:54,086 - INFO - Created VN ctest-vn-46279932
2024-11-09 08:54:54,145 - DEBUG - VN ctest-vn-46279932 UUID is 973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:54,271 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204, 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-50219836:ctest-vn-46279932, 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-11-09 08:54:54,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5e807a3-9963-4c53-91d7-7ab28132589c', 'name': 'ctest-vn-34617204', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c2cede6-5635-4d55-9302-c2df15b1c633'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-34617204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195']], 'subnet_ipam': [{'subnet_cidr': '153.115.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-09 08:54:54,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '973777ad-90a5-46e7-a3fa-02e21ffaf25e', 'name': 'ctest-vn-46279932', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce1de642-ac35-45ac-a350-bfabc55d6d49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-46279932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195']], 'subnet_ipam': [{'subnet_cidr': '68.96.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-09 08:54:55,033 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-09 08:54:55,335 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-09 08:54:55,371 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c
2024-11-09 08:54:55,386 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997
2024-11-09 08:54:55,472 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:55,491 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:55,506 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858
2024-11-09 08:54:55,519 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858
2024-11-09 08:54:55,529 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/144ae1e2-dca2-4bea-a336-6a266ef0e4c9
2024-11-09 08:54:55,546 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-09 08:54:55,547 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:55,563 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858
2024-11-09 08:54:55,585 - INFO - Verified VN network id 7 for VN b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:55,585 - INFO - Verifications in API Server for VN ctest-vn-34617204 passed
2024-11-09 08:54:55,585 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:55,598 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858
2024-11-09 08:54:55,607 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858
2024-11-09 08:54:55,618 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/144ae1e2-dca2-4bea-a336-6a266ef0e4c9
2024-11-09 08:54:55,633 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50219836', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13107735114696313939', 'uuid-lslong': '10509003162582669468'}, 'enable': 'true', 'created': '2024-11-09T08:54:53', 'last-modified': '2024-11-09T08:54:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.053355'}
2024-11-09 08:54:55,640 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-09 08:54:55,640 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34617204 passed
2024-11-09 08:54:55,641 - DEBUG - ====Verifying policy data for ctest-vn-34617204 in API_Server ======
2024-11-09 08:54:55,641 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-09 08:54:55,648 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c
2024-11-09 08:54:55,663 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997
2024-11-09 08:54:55,750 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c
2024-11-09 08:54:55,767 - DEBUG - ==>Verifying data for policy with id: 03cd7613-fe01-4f35-a796-127c59237c44, fqn: ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195']
2024-11-09 08:54:55,767 - INFO - VN ctest-vn-34617204 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-09 08:54:55,767 - DEBUG - Verifying the vn in opserver
2024-11-09 08:54:55,767 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204 virtual network link through opserver 10.0.0.43
2024-11-09 08:54:55,768 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-11-09 08:54:56,067 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-11-09 08:54:56,129 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204?flat'}
2024-11-09 08:54:56,129 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204 is found in opserver
2024-11-09 08:54:56,142 - DEBUG - Do not have enough data to verify VN in agent
2024-11-09 08:54:56,148 - DEBUG - VRF ids for VN ctest-vn-34617204: {}
2024-11-09 08:54:56,148 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-09 08:54:56,154 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c
2024-11-09 08:54:56,168 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997
2024-11-09 08:54:56,251 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:56,268 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:56,282 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c
2024-11-09 08:54:56,292 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c
2024-11-09 08:54:56,301 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/90927630-0c81-4525-9d3f-6dca6865264f
2024-11-09 08:54:56,308 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-09 08:54:56,309 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:56,322 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c
2024-11-09 08:54:56,343 - INFO - Verified VN network id 8 for VN 973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:56,343 - INFO - Verifications in API Server for VN ctest-vn-46279932 passed
2024-11-09 08:54:56,343 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:56,357 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c
2024-11-09 08:54:56,366 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c
2024-11-09 08:54:56,377 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/90927630-0c81-4525-9d3f-6dca6865264f
2024-11-09 08:54:56,390 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50219836', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10896309410786002663', 'uuid-lslong': '11815759742582321758'}, 'enable': 'true', 'created': '2024-11-09T08:54:53', 'last-modified': '2024-11-09T08:54:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.562533'}
2024-11-09 08:54:56,396 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-09 08:54:56,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46279932 passed
2024-11-09 08:54:56,397 - DEBUG - ====Verifying policy data for ctest-vn-46279932 in API_Server ======
2024-11-09 08:54:56,397 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-09 08:54:56,403 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c
2024-11-09 08:54:56,416 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997
2024-11-09 08:54:56,492 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e
2024-11-09 08:54:56,506 - DEBUG - ==>Verifying data for policy with id: 03cd7613-fe01-4f35-a796-127c59237c44, fqn: ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195']
2024-11-09 08:54:56,506 - INFO - VN ctest-vn-46279932 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-09 08:54:56,506 - DEBUG - Verifying the vn in opserver
2024-11-09 08:54:56,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932 virtual network link through opserver 10.0.0.43
2024-11-09 08:54:56,506 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-11-09 08:54:56,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932?flat'}
2024-11-09 08:54:56,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932 is found in opserver
2024-11-09 08:54:56,528 - DEBUG - Do not have enough data to verify VN in agent
2024-11-09 08:54:56,533 - DEBUG - VRF ids for VN ctest-vn-46279932: {}
2024-11-09 08:54:56,591 - DEBUG - Services list from nova: [