2024-08-30 14:51:28,383 - INFO - Domain Default found not creating
2024-08-30 14:51:28,602 - INFO - Project ctest-TestBasicPolicy-27896850 not found, creating it
2024-08-30 14:51:29,286 - INFO - Created Project:ctest-TestBasicPolicy-27896850, ID : 2bf1a81b-16bd-4d36-b97d-9911bf57fd22
2024-08-30 14:51:30,847 - INFO - ================================================================================
2024-08-30 14:51:30,847 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-30 14:51:30,847 - 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 14:51:31,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with
2024-08-30 14:51:31,112 - INFO - Initial checks done. Running the testcase now
2024-08-30 14:51:31,112 - INFO -
2024-08-30 14:51:31,693 - DEBUG - Response for create_network : {'network': {'id': '830df2f3-69ec-429f-b10a-cd63d027bac0', 'name': 'ctest-vn-17382581', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-17382581'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:31,882 - DEBUG - Response for create_subnet : {'subnet': {'id': '5638d02a-cdd8-4cd7-895c-e6f74d94b0d4', 'name': '', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'network_id': '830df2f3-69ec-429f-b10a-cd63d027bac0', 'ip_version': 4, 'cidr': '150.97.127.128/26', 'allocation_pools': [{'start': '150.97.127.130', 'end': '150.97.127.190'}], 'gateway_ip': '150.97.127.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.97.127.130', 'tags': [], 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22'}}
2024-08-30 14:51:31,905 - INFO - Created VN ctest-vn-17382581
2024-08-30 14:51:31,957 - DEBUG - VN ctest-vn-17382581 UUID is 830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:32,252 - DEBUG - Response for create_network : {'network': {'id': 'aecc66d8-846d-474b-8948-105508ee2420', 'name': 'ctest-vn-01975228', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-01975228'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:32,428 - DEBUG - Response for create_subnet : {'subnet': {'id': '33162c98-3432-4521-a2eb-3cb882faa709', 'name': '', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'network_id': 'aecc66d8-846d-474b-8948-105508ee2420', 'ip_version': 4, 'cidr': '142.65.156.64/26', 'allocation_pools': [{'start': '142.65.156.66', 'end': '142.65.156.126'}], 'gateway_ip': '142.65.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.65.156.66', 'tags': [], 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22'}}
2024-08-30 14:51:32,452 - INFO - Created VN ctest-vn-01975228
2024-08-30 14:51:32,505 - DEBUG - VN ctest-vn-01975228 UUID is aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:32,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581, 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-27896850:ctest-vn-01975228, 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 14:51:32,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '830df2f3-69ec-429f-b10a-cd63d027bac0', 'name': 'ctest-vn-17382581', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5638d02a-cdd8-4cd7-895c-e6f74d94b0d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-17382581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087']], 'subnet_ipam': [{'subnet_cidr': '150.97.127.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:33,236 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aecc66d8-846d-474b-8948-105508ee2420', 'name': 'ctest-vn-01975228', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33162c98-3432-4521-a2eb-3cb882faa709'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-01975228'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087']], 'subnet_ipam': [{'subnet_cidr': '142.65.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:33,405 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-30 14:51:33,709 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-30 14:51:33,747 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20
2024-08-30 14:51:33,763 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22
2024-08-30 14:51:33,834 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:33,850 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:33,859 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8
2024-08-30 14:51:33,867 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8
2024-08-30 14:51:33,875 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1c87becb-9145-4a9e-87e1-6585a0d73695
2024-08-30 14:51:33,883 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 14:51:33,883 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:33,892 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8
2024-08-30 14:51:33,906 - INFO - Verified VN network id 8 for VN 830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:33,906 - INFO - Verifications in API Server for VN ctest-vn-17382581 passed
2024-08-30 14:51:33,906 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:33,917 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8
2024-08-30 14:51:33,925 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8
2024-08-30 14:51:33,932 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1c87becb-9145-4a9e-87e1-6585a0d73695
2024-08-30 14:51:33,946 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27896850', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9443471120933864095', 'uuid-lslong': '12757234723058072256'}, 'enable': 'true', 'created': '2024-08-30T14:51:31', 'last-modified': '2024-08-30T14:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030887'}
2024-08-30 14:51:33,952 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 14:51:33,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17382581 passed
2024-08-30 14:51:33,953 - DEBUG - ====Verifying policy data for ctest-vn-17382581 in API_Server ======
2024-08-30 14:51:33,953 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-30 14:51:33,960 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20
2024-08-30 14:51:33,973 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22
2024-08-30 14:51:34,044 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0
2024-08-30 14:51:34,055 - DEBUG - ==>Verifying data for policy with id: 09231218-11ce-4609-bab6-5c3c25287f06, fqn: ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087']
2024-08-30 14:51:34,055 - INFO - VN ctest-vn-17382581 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 14:51:34,055 - DEBUG - Verifying the vn in opserver
2024-08-30 14:51:34,055 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581 virtual network link through opserver 10.0.0.17
2024-08-30 14:51:34,055 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-30 14:51:34,366 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-30 14:51:34,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581?flat'}
2024-08-30 14:51:34,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581 is found in opserver
2024-08-30 14:51:34,451 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 14:51:34,457 - DEBUG - VRF ids for VN ctest-vn-17382581: {}
2024-08-30 14:51:34,457 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-30 14:51:34,464 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20
2024-08-30 14:51:34,478 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22
2024-08-30 14:51:34,550 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:34,561 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:34,569 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a
2024-08-30 14:51:34,577 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a
2024-08-30 14:51:34,586 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/c7226460-af66-429d-a398-e77e88804dd9
2024-08-30 14:51:34,593 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 14:51:34,593 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:34,602 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a
2024-08-30 14:51:34,625 - INFO - Verified VN network id 9 for VN aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:34,625 - INFO - Verifications in API Server for VN ctest-vn-01975228 passed
2024-08-30 14:51:34,625 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:34,636 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a
2024-08-30 14:51:34,644 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a
2024-08-30 14:51:34,652 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/c7226460-af66-429d-a398-e77e88804dd9
2024-08-30 14:51:34,666 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27896850', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12595555337969157963', 'uuid-lslong': '9892174538927383584'}, 'enable': 'true', 'created': '2024-08-30T14:51:32', 'last-modified': '2024-08-30T14:51:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463055'}
2024-08-30 14:51:34,673 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 14:51:34,673 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01975228 passed
2024-08-30 14:51:34,673 - DEBUG - ====Verifying policy data for ctest-vn-01975228 in API_Server ======
2024-08-30 14:51:34,673 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-30 14:51:34,680 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20
2024-08-30 14:51:34,692 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22
2024-08-30 14:51:34,763 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420
2024-08-30 14:51:34,772 - DEBUG - ==>Verifying data for policy with id: 09231218-11ce-4609-bab6-5c3c25287f06, fqn: ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087']
2024-08-30 14:51:34,773 - INFO - VN ctest-vn-01975228 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 14:51:34,773 - DEBUG - Verifying the vn in opserver
2024-08-30 14:51:34,773 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228 virtual network link through opserver 10.0.0.17
2024-08-30 14:51:34,773 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-30 14:51:34,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228?flat'}
2024-08-30 14:51:34,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228 is found in opserver
2024-08-30 14:51:34,796 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 14:51:34,802 - DEBUG - VRF ids for VN ctest-vn-01975228: {}
2024-08-30 14:51:34,867 - DEBUG - Services list from nova: [